From ee6b633a178ba001106ba9d90950e8fcbd6a91d2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 16 Aug 2019 09:42:23 +0200 Subject: extra/java10-openjdk: more patching (-fno-plt and -mincoming-stack-boundary=2) --- extra/java10-openjdk/PKGBUILD | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'extra') 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}-}" -- cgit v1.2.3-70-g09d2