From 554fcbbdd992afde82d4375f4c385f63879caf8a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 16 Aug 2019 12:26:59 +0200 Subject: extra/java-openjdk: patching for pentium4 (see FS32#75) --- extra/java-openjdk/PKGBUILD | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/java-openjdk/PKGBUILD b/extra/java-openjdk/PKGBUILD index 97c72063..b1d50745 100644 --- a/extra/java-openjdk/PKGBUILD +++ b/extra/java-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}-}" -- cgit v1.2.3-70-g09d2