diff options
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index e910d0a9c..702a87433 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -556,11 +556,14 @@ def configuration(parent_package='',top_path=None): def testcode_mathlib(): return """\ -/* check whether libm is broken */ -#include <math.h> -int main(int argc, char *argv[]) +/* + * check whether libm is explicitly needed for access to basic math functions + */ +char exp(void); +int main(void) { - return exp(-1.) > 1.0; + exp(); + return 0; } """ |