From 5d77a997cf30e0fcea36a2ea38cdf99405c4f210 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 27 Oct 2018 20:45:00 +0200 Subject: community/squid: correctly testing for -latomic on i486 --- community/squid/PKGBUILD | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 community/squid/PKGBUILD (limited to 'community/squid/PKGBUILD') 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 -- cgit v1.2.3-54-g00ecf From c727b6bde4f72da83e7691657434eee70557b60b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 27 Oct 2018 21:10:46 +0200 Subject: community/squid: fixed a double == --- community/squid/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'community/squid/PKGBUILD') diff --git a/community/squid/PKGBUILD b/community/squid/PKGBUILD index 53731943..1a2bcc45 100644 --- a/community/squid/PKGBUILD +++ b/community/squid/PKGBUILD @@ -7,7 +7,7 @@ if [ "${CARCH}" = "i486" ]; then eval "$( declare -f build | \ sed ' - s|make|make LDFLAGS=="-Wl,--as-needed -latomic -Wl,--no-as-needed"|g + s|make|make LDFLAGS="-Wl,--as-needed -latomic -Wl,--no-as-needed"|g '; )" fi -- cgit v1.2.3-54-g00ecf