From 5d46417fe35dfbf478468efc87f9b1c39e0b542e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 6 May 2021 20:58:03 +0200 Subject: extra/python-numpy: fixed compilation flags for SSE and friends --- extra/python-numpy/PKGBUILD | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extra/python-numpy/PKGBUILD (limited to 'extra') diff --git a/extra/python-numpy/PKGBUILD b/extra/python-numpy/PKGBUILD new file mode 100644 index 00000000..6e15ddae --- /dev/null +++ b/extra/python-numpy/PKGBUILD @@ -0,0 +1,17 @@ +# enable SSE/SSE2 on pentium4, no optimizations on i686 and i486 +if [ "${CARCH}" = "i486" -o "${CARCH}" = "i686" ]; then + eval "$( + declare -f build | \ + sed ' + s|python setup.py build|python setup.py build --cpu-baseline=NONE --cpu-dispatch=NONE| + ' + )" +fi +if [ "${CARCH}" = "pentium4" ]; then + eval "$( + declare -f build | \ + sed ' + s|python setup.py build|python setup.py build --cpu-baseline=NONE --cpu-dispatch=SSE,SSE2| + ' + )" +fi -- cgit v1.2.3-54-g00ecf