Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/java10-openjdk
diff options
context:
space:
mode:
Diffstat (limited to 'extra/java10-openjdk')
-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}-}"