summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-04-05 09:11:11 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-04-05 09:11:11 +0000
commit42fa00eca53817fc744cc659f3bc921c079fa65d (patch)
treee360a2905ef135d4cd6051f7332a58bce8233232
parentb924a621e952570c359892bc335d4ef34a5e6a14 (diff)
downloadnumpy-42fa00eca53817fc744cc659f3bc921c079fa65d.tar.gz
Replace try_run by try_link test for mathlib - does not test for IEEE denormal anymore, but nobody was able to give a rational for it anyway.
-rw-r--r--numpy/core/setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 3c453788a..e910d0a9c 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -246,7 +246,7 @@ def check_mathlib(config_cmd):
if mathlib:
mathlibs_choices.insert(0,mathlib.split(','))
for libs in mathlibs_choices:
- if config_cmd.try_run(tc,libraries=libs):
+ if config_cmd.try_link(tc,libraries=libs):
mathlibs = libs
break
else:
@@ -560,7 +560,7 @@ def testcode_mathlib():
#include <math.h>
int main(int argc, char *argv[])
{
- return exp(-720.) > 1.0; /* typically an IEEE denormal */
+ return exp(-1.) > 1.0;
}
"""