From f7f3df0ec531498d4efc969d865901e4071adacd Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 31 Mar 2023 14:57:29 +0200 Subject: community/crypto++: patched for non-SSE2 version on i686/i486 --- community/crypto++/PKGBUILD | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 community/crypto++/PKGBUILD (limited to 'community/crypto++/PKGBUILD') diff --git a/community/crypto++/PKGBUILD b/community/crypto++/PKGBUILD new file mode 100644 index 00000000..23130381 --- /dev/null +++ b/community/crypto++/PKGBUILD @@ -0,0 +1,9 @@ +# disable SSE2 on i686 and i486 +if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s/export CXXFLAGS="\([^"]\+\)"/export CXXFLAGS="\1 -DCRYPTOPP_DISABLE_ASM=1"/g + ' + )" +fi -- cgit v1.2.3-70-g09d2