Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/pcre2/PKGBUILD
blob: 0cf66cfffc69e6a383b70afd64efee872fd54ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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