diff options
author | Dmitry Odzerikho <dmitry.odzerikho@gmail.com> | 2016-01-21 11:35:52 -0500 |
---|---|---|
committer | Dmitry Odzerikho <dmitry.odzerikho@gmail.com> | 2016-01-21 12:09:29 -0500 |
commit | 8c84718365c073fb5ea84e7d3c05fa72bc5c5698 (patch) | |
tree | a5a0a3dc42d9787a0485cc8a99d73c78695a6148 | |
parent | 9ad54ae775a2e828907556f4fa30ade8780b8bf6 (diff) | |
download | numpy-8c84718365c073fb5ea84e7d3c05fa72bc5c5698.tar.gz |
BLD: fix compilation on non glibc-Linuxes
Non-glibc Linuxes dont have the __GLIBC_PREREQ function and compilation of numpy
fails on such platforms. To avoid this the TRIG_OK check should be done only in
the glibc environment
The patch is taken from AlpineLinux repository
http://git.alpinelinux.org/cgit/aports/tree/testing/py-numpy/numpy-1.10.0-musl.patch?id=2e5c4bfcf1c9746edd58a8e684d01403f234e71d
-rw-r--r-- | numpy/core/src/private/npy_config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/private/npy_config.h b/numpy/core/src/private/npy_config.h index eb9c1e19d..4268f2982 100644 --- a/numpy/core/src/private/npy_config.h +++ b/numpy/core/src/private/npy_config.h @@ -70,8 +70,8 @@ #endif /* defined(_MSC_VER) && defined(__INTEL_COMPILER) */ -/* Disable broken gnu trig functions on linux */ -#if defined(__linux__) && defined(__GNUC__) +/* Disable broken glibc trig functions on linux */ +#if defined(__linux__) && defined(__GLIBC__) #if defined(HAVE_FEATURES_H) #include <features.h> @@ -102,6 +102,6 @@ #endif #undef TRIG_OK -#endif /* defined(__linux__) && defined(__GNUC__) */ +#endif /* defined(__linux__) && defined(__GLIBC__) */ #endif |