[Numpy-svn] r4286 - branches/numpy.scons/numpy/distutils/scons

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Oct 25 03:49:52 EDT 2007


Author: cdavid
Date: 2007-10-25 02:49:49 -0500 (Thu, 25 Oct 2007)
New Revision: 4286

Modified:
   branches/numpy.scons/numpy/distutils/scons/custom_checkers.py
Log:
Trivial fix for custom checkers.

Modified: branches/numpy.scons/numpy/distutils/scons/custom_checkers.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/custom_checkers.py	2007-10-25 07:45:10 UTC (rev 4285)
+++ branches/numpy.scons/numpy/distutils/scons/custom_checkers.py	2007-10-25 07:49:49 UTC (rev 4286)
@@ -97,6 +97,7 @@
 
 def CheckCBLAS(context):
     cflags = []
+    libs = []
     if sys.platform == 'darwin':
         # According to
         # http://developer.apple.com/hardwaredrivers/ve/vector_libraries.html:
@@ -112,9 +113,10 @@
         else:
             is_intel = 0
             cflags.append('-faltivec')
+        # TODO: we should have a small test code to test Accelerate vs veclib
         cflags.append('-framework Accelerate')
     else:
-        libs = ['cblas']
+        libs.append('cblas')
 
     return _check_include_and_run(context, 'CBLAS', [], [], cblas_src,
                                   libs, [], [], cflags)




More information about the Numpy-svn mailing list