openjdk8: build with LFS

This commit is contained in:
Đoàn Trần Công Danh 2023-05-13 13:45:11 +07:00
parent e9d55efb7b
commit 9ff36a9475

View file

@ -4,7 +4,7 @@
# TODO: config files?
pkgname=openjdk8
version=8u322b04
revision=4
revision=5
_jdk_update="${version#*u}"
_jdk_update="${_jdk_update%b*}"
_jdk_build="${version#*b}"
@ -186,6 +186,11 @@ do_configure() {
;;
esac
if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
CFLAGS+=" -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"
CXXFLAGS+=" -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"
fi
./configure ${configure_args} --with-extra-cflags="$CFLAGS" \
--with-extra-cxxflags="$CXXFLAGS" --with-extra-ldflags="$LDFLAGS"
}