Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/openssl-1.0
diff options
context:
space:
mode:
Diffstat (limited to 'core/openssl-1.0')
-rw-r--r--core/openssl-1.0/PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/core/openssl-1.0/PKGBUILD b/core/openssl-1.0/PKGBUILD
index 5475ccdb..bff1d9e0 100644
--- a/core/openssl-1.0/PKGBUILD
+++ b/core/openssl-1.0/PKGBUILD
@@ -1,11 +1,13 @@
+# override openssltarget and optflags for our CARCHs
eval "$(
declare -f build | \
sed '
- /^\s*if .*i686/ {
- s/\(['"'"'"]\?\)i686\1/i?86/
- s/\[/[[/
- s/]/]]/
- s/==/=/
- }
+ /.*.\/Configure.*/ i \
+ openssltarget=linux-generic32 \
+ if [ "${CARCH}" == 'i686' ]; then \
+ optflags='no-sse2' \
+ elif [ "${CARCH}" == 'i486' ]; then \
+ optflags='386' \
+ fi
'
)"