index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-05-19 20:17:59 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-05-19 20:17:59 +0200 |
commit | 5792e2a9df8894daf0b95dc65a4fa6c43e19b96c (patch) | |
tree | 20c85d26086f7d45ddc7957dac1b9e65ea72535a /build-support/java13-openjdk/PKGBUILD | |
parent | c5f205b63a5d857289641c472f6aaf4ec9501494 (diff) |
-rw-r--r-- | build-support/java13-openjdk/PKGBUILD | 21 |
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}" |