[Numpy-svn] r6412 - branches/coremath/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Thu Feb 19 04:49:39 CST 2009


Author: cdavid
Date: 2009-02-19 04:49:34 -0600 (Thu, 19 Feb 2009)
New Revision: 6412

Modified:
   branches/coremath/numpy/distutils/command/config.py
Log:
Support library_dirs in check_type.

Modified: branches/coremath/numpy/distutils/command/config.py
===================================================================
--- branches/coremath/numpy/distutils/command/config.py	2009-02-19 10:24:58 UTC (rev 6411)
+++ branches/coremath/numpy/distutils/command/config.py	2009-02-19 10:49:34 UTC (rev 6412)
@@ -165,7 +165,7 @@
 
         return self.try_compile(body, headers, include_dirs)
 
-    def check_type_size(self, type_name, headers=None, include_dirs=None):
+    def check_type_size(self, type_name, headers=None, include_dirs=None, library_dirs=None):
         """Check size of a given type."""
         # XXX: should also implement the cross-compiling version (using binary
         # search + array indexing, see AC_CHECK_SIZEOF).
@@ -211,7 +211,7 @@
         size = None
         try:
             src, obj, exe = self._link(body, headers, include_dirs,
-                                       [], [], 'c')
+                                       [], library_dirs, 'c')
             #exe = os.path.join('.', exe)
             exitstatus, output = exec_command(exe, execute_in='.')
             if hasattr(os, 'WEXITSTATUS'):



More information about the Numpy-svn mailing list