From e80107601b421d87ce510d6c976a83c59036d578 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 6 Jul 2018 19:21:17 +0000 Subject: core/pcre2: added i486 specific patches --- core/pcre2/PKGBUILD | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 core/pcre2/PKGBUILD (limited to 'core') diff --git a/core/pcre2/PKGBUILD b/core/pcre2/PKGBUILD new file mode 100644 index 00000000..0cf66cff --- /dev/null +++ b/core/pcre2/PKGBUILD @@ -0,0 +1,15 @@ +# 486-specific: we have no Vala or Java at the moment +if [ "${CARCH}" = "i486" ]; then + # pcre2 configure, overload CFLAGS and CXXFLAGS to avoid optimization + # using MMX registers (default in gcc) + # disable JIT, contains hard coded XMM registers + eval "$( + declare -f build | \ + sed ' + s@./configure@CFLAGS="-march=i486 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" CXXFLAGS="-march=i486 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" ./configure@ + s/--enable-jit/--disable-jit/ + ' + )" + + +fi -- cgit v1.2.3