summaryrefslogtreecommitdiff
path: root/community/squid/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-10-27 20:45:00 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-10-27 20:45:00 +0200
commit5d77a997cf30e0fcea36a2ea38cdf99405c4f210 (patch)
tree605d64f62fc98ea0275489b133ef8065bc6b0d27 /community/squid/PKGBUILD
parent3cf12639b379fd9ee33a5b62399504083824e41b (diff)
downloadpackages-5d77a997cf30e0fcea36a2ea38cdf99405c4f210.tar.xz
community/squid: correctly testing for -latomic on i486
Diffstat (limited to 'community/squid/PKGBUILD')
-rw-r--r--community/squid/PKGBUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/squid/PKGBUILD b/community/squid/PKGBUILD
new file mode 100644
index 00000000..53731943
--- /dev/null
+++ b/community/squid/PKGBUILD
@@ -0,0 +1,13 @@
+# testing libatomic for __atomic_load_8 fails in configure.ac, following the idea in
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830942
+# TODO: report upstream in squid project
+
+# i486-specific
+if [ "${CARCH}" = "i486" ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s|make|make LDFLAGS=="-Wl,--as-needed -latomic -Wl,--no-as-needed"|g
+ ';
+ )"
+fi