From 8c84718365c073fb5ea84e7d3c05fa72bc5c5698 Mon Sep 17 00:00:00 2001 From: Dmitry Odzerikho Date: Thu, 21 Jan 2016 11:35:52 -0500 Subject: [PATCH] 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 --- numpy/core/src/private/npy_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/numpy/core/src/private/npy_config.h b/numpy/core/src/private/npy_config.h index eb9c1e19d342..4268f2982d77 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 @@ -102,6 +102,6 @@ #endif #undef TRIG_OK -#endif /* defined(__linux__) && defined(__GNUC__) */ +#endif /* defined(__linux__) && defined(__GLIBC__) */ #endif