summaryrefslogtreecommitdiff
path: root/extra/java11-openjdk
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-08-16 12:20:58 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-08-16 12:20:58 +0200
commit5261d460a379f4f1289c6f824778459958b75ef4 (patch)
tree6078fcd4268c5cb3380364c25a91f5d49d79bb02 /extra/java11-openjdk
parentee6b633a178ba001106ba9d90950e8fcbd6a91d2 (diff)
downloadpackages-5261d460a379f4f1289c6f824778459958b75ef4.tar.xz
extra/java11-openjdk: patching for pentium4 (see FS32#75)
Diffstat (limited to 'extra/java11-openjdk')
-rw-r--r--extra/java11-openjdk/PKGBUILD21
1 files changed, 20 insertions, 1 deletions
diff --git a/extra/java11-openjdk/PKGBUILD b/extra/java11-openjdk/PKGBUILD
index 97c72063..b1d50745 100644
--- a/extra/java11-openjdk/PKGBUILD
+++ b/extra/java11-openjdk/PKGBUILD
@@ -5,8 +5,27 @@ fi
# pentium4-specific
if [ "${CARCH}" = "pentium4" ]; then
- _JARCH=i386
+ _JARCH=x86
_DOC_ARCH=x86
+
+ # make sure -no-plt is set also for pentium4
+ eval "$(
+ declare -f build | \
+ sed '
+ /CARCH/s/i686/pentium4/
+ '
+ )"
+
+ # force 4-byte stack alignment on SSE aptimized systems, see FS32#75
+ eval "$(
+ declare -f build | \
+ sed '
+ /unset CFLAGS/ i \
+ _CFLAGS="${_CFLAGS} -mincoming-stack-boundary=2" \
+ _CXXFLAGS="${_CXXFLAGS} -mincoming-stack-boundary=2"
+ '
+ )"
+
fi
_imgdir="${_imgdir//--/-${_JARCH}-}"