Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-11-05 14:18:07 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-11-05 14:18:07 +0100
commitf7deda68f70749590bfe9a76aadd30fd267d90de (patch)
tree6f1f655fba90c54c858460d1fc87088a0b6be8e9
parentb9e5d149333021fd37fe7539b127beaf0f65194f (diff)
core/openssl-1.1: applying same patching as for openssl 3.0.7
-rw-r--r--core/openssl-1.1/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/openssl-1.1/PKGBUILD b/core/openssl-1.1/PKGBUILD
new file mode 100644
index 00000000..8ab857a0
--- /dev/null
+++ b/core/openssl-1.1/PKGBUILD
@@ -0,0 +1,28 @@
+# switch to 32-bit target (was linux-elf before, which I think is wrong also for i686)
+eval "$(
+ declare -f build | \
+ sed '
+ s@linux-x86_64@linux-generic32@
+ s@ enable-ec_nistp_64_gcc_128 @ @
+ '
+)"
+
+# i486-specific, disable hand-crafted assembly code
+if [ "${CARCH}" = "i486" ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s@no-ssl3-method@no-ssl3-method 386@
+ '
+ )"
+fi
+
+# i686-specific, disable hand-crafted assembly code
+if [ "${CARCH}" = "i686" ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s@no-ssl3-method@no-ssl3-method no-sse2@
+ '
+ )"
+fi