From 5e06535e22788a5f119f908621412a8a86d8a692 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 14 Sep 2018 15:16:13 +0200 Subject: copy over i486 changes for [core] --- core/pcre2/PKGBUILD | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/pcre2/PKGBUILD (limited to 'core/pcre2') diff --git a/core/pcre2/PKGBUILD b/core/pcre2/PKGBUILD new file mode 100644 index 00000000..da90f860 --- /dev/null +++ b/core/pcre2/PKGBUILD @@ -0,0 +1,13 @@ +# 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-70-g09d2