Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/java13-openjdk/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-05-19 20:17:59 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-05-19 20:17:59 +0200
commit5792e2a9df8894daf0b95dc65a4fa6c43e19b96c (patch)
tree20c85d26086f7d45ddc7957dac1b9e65ea72535a /build-support/java13-openjdk/PKGBUILD
parentc5f205b63a5d857289641c472f6aaf4ec9501494 (diff)
java13-openjdk: flags are in the wrong place
Diffstat (limited to 'build-support/java13-openjdk/PKGBUILD')
-rw-r--r--build-support/java13-openjdk/PKGBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/build-support/java13-openjdk/PKGBUILD b/build-support/java13-openjdk/PKGBUILD
index 28c8e22f..89554850 100644
--- a/build-support/java13-openjdk/PKGBUILD
+++ b/build-support/java13-openjdk/PKGBUILD
@@ -73,6 +73,17 @@ build() {
export MAKEFLAGS=${MAKEFLAGS/-j${MAKEFLAG_J}/}
NUM_PROC_OPT="--with-num-cores=${MAKEFLAG_J}"
fi
+
+ # Avoid optimization of HotSpot to be lowered from O3 to O2
+ local _CFLAGS="${CFLAGS//-O2/-O3} ${CPPFLAGS}"
+ local _CXXFLAGS="${CXXFLAGS//-O2/-O3} ${CPPFLAGS}"
+ local _LDFLAGS=${LDFLAGS}
+ if [[ $CARCH = i486 || $CARCH = i686 || $CARCH = pentium4 ]]; then
+ echo "Removing '-fno-plt' from CFLAGS and CXXFLAGS to prevent build fail with this architecture"
+ _CFLAGS=${CFLAGS/-fno-plt/}
+ _CXXFLAGS=${CXXFLAGS/-fno-plt/}
+ fi
+
# i486-specific
if [ "${CARCH}" = "i486" ]; then
_JARCH=i386
@@ -86,16 +97,6 @@ build() {
_CXXFLAGS+=" -mincoming-stack-boundary=2"
fi
- # Avoid optimization of HotSpot to be lowered from O3 to O2
- local _CFLAGS="${CFLAGS//-O2/-O3} ${CPPFLAGS}"
- local _CXXFLAGS="${CXXFLAGS//-O2/-O3} ${CPPFLAGS}"
- local _LDFLAGS=${LDFLAGS}
- if [[ $CARCH = i486 || $CARCH = i686 || $CARCH = pentium4 ]]; then
- echo "Removing '-fno-plt' from CFLAGS and CXXFLAGS to prevent build fail with this architecture"
- _CFLAGS=${CFLAGS/-fno-plt/}
- _CXXFLAGS=${CXXFLAGS/-fno-plt/}
- fi
-
# CFLAGS, CXXFLAGS and LDFLAGS are ignored as shown by a warning
# in the output of ./configure unless used like such:
# --with-extra-cflags="${CFLAGS}"