void-packages/srcpkgs/python3-numpy/files/fenv-constants.patch
Andrew J. Hesford 23b1f238bc python3-numpy: update to 1.19.5, fix armv5tel-musl
In fenv.h, musl disables the normal set of constants that you would get
on arm with an arm device with an fpu (armv6 and up), but armv5tel on
void uses softfloat all the time. But python3-numpy dosen't use these to
interact with the fpu (the compiler would generate those instructions)
and rather just uses those constants for a generic GCC implementation.
So we give them out anyway.

Co-authored-by: fosslinux <fosslinux@aussies.space>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
2021-01-06 11:07:38 -05:00

11 lines
327 B
Diff

--- numpy/core/src/npymath/ieee754.c.src 2020-09-20 14:53:51.998825328 +1000
+++ numpy/core/src/npymath/ieee754.c.src 2020-09-20 14:54:03.611889518 +1000
@@ -8,6 +8,8 @@
#include "npy_math_private.h"
#include "numpy/utils.h"
+#include "fenv-constants.h"
+
#ifndef HAVE_COPYSIGN
double npy_copysign(double x, double y)
{