summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-02-19 10:49:34 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-02-19 10:49:34 +0000
commitab606d34173c80606bb152068979809af42fd56f (patch)
treeb96112903267105b6905f0590e96d3da65781be3 /numpy/distutils/command/config.py
parente0c77133a9165afa6370e4203d01028b5b96eb4b (diff)
downloadnumpy-ab606d34173c80606bb152068979809af42fd56f.tar.gz
Support library_dirs in check_type.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index 76ba1c740..03249e968 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -165,7 +165,7 @@ int main()
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 @@ main (void)
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'):