diff --git a/build/pkgs/numpy/spkg-install.in b/build/pkgs/numpy/spkg-install.in index 1a2c77fb8a8..408c8e726ca 100644 --- a/build/pkgs/numpy/spkg-install.in +++ b/build/pkgs/numpy/spkg-install.in @@ -38,6 +38,16 @@ else export NUMPY_FCONFIG fi +# Trac #32423: Fix 32-bit builds on x86_64 +ARCH=$($CC -dumpmachine 2>/dev/null || echo unknown) +case "$ARCH" in + x86_64) + ;; + *) + export NPY_DISABLE_SVML=1 + ;; +esac + ################################################ # Trac #33138: numpy is a PEP 517 package, so the crucial "--build-option"s would be ignored.