From 08667cde99597039ba7e7800bdf3634fe88ce2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Fri, 19 Jan 2024 13:43:20 +0100 Subject: [PATCH] Workaround build breaking without set C or LDFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Included java-openjfx-flags.patch makes calls to CFLAGS and LDFLAGS which will cause the build to break if they’re not set in a user’s makepkg.conf or otherwise. --- PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index a500c856addc..3728d97306b6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -72,6 +72,11 @@ prepare() { build() { cd $_jfxdir + # Workaround for users without set $CFLAGS and $LDFLAGS causing + # build to fail because of included java-openjfx-flags.patch + export CFLAGS=${CFLAGS:=} + export LDFLAGS=${LDFLAGS:=} + # Build with openjdk-17 export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH"