Workaround build breaking without set C or LDFLAGS

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.
This commit is contained in:
Frederik “Freso” S. Olesen 2024-01-19 13:43:20 +01:00
parent 152061030b
commit 08667cde99
No known key found for this signature in database
GPG key ID: 27628EAF5DC1403E

View file

@ -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"