diff options
author | David Cournapeau <cournape@gmail.com> | 2009-04-05 09:34:39 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-04-05 09:34:39 +0000 |
commit | 3b1e1e3e6f3589d562d70b3cefff51f1666f6427 (patch) | |
tree | 6c199093188a63a2e6c69d150bc8a3759d5ea5cb | |
parent | 42fa00eca53817fc744cc659f3bc921c079fa65d (diff) | |
download | numpy-3b1e1e3e6f3589d562d70b3cefff51f1666f6427.tar.gz |
Fix mathlib test.
-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; } """ |