Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-08-16 09:42:23 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-08-16 09:42:23 +0200
commitee6b633a178ba001106ba9d90950e8fcbd6a91d2 (patch)
tree4dda71e6d9c9e52e490052990e20a9d2f7ae7d99
parentc6a345d9e9f1a8ba433026e6bbe82e2567866c6d (diff)
extra/java10-openjdk: more patching (-fno-plt and -mincoming-stack-boundary=2)
-rw-r--r--extra/java10-openjdk/PKGBUILD11
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/java10-openjdk/PKGBUILD b/extra/java10-openjdk/PKGBUILD
index bcfca6b7..b1d50745 100644
--- a/extra/java10-openjdk/PKGBUILD
+++ b/extra/java10-openjdk/PKGBUILD
@@ -8,6 +8,7 @@ if [ "${CARCH}" = "pentium4" ]; then
_JARCH=x86
_DOC_ARCH=x86
+ # make sure -no-plt is set also for pentium4
eval "$(
declare -f build | \
sed '
@@ -15,6 +16,16 @@ if [ "${CARCH}" = "pentium4" ]; then
'
)"
+ # 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}-}"