summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index 4b456aeb9..75a574fca 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -61,15 +61,13 @@ class config(old_config):
if lang in ['f77','f90']:
lang = 'c' # always use system linker when using MSVC compiler
if self.fcompiler:
- f_lib_dirs = []
for d in self.fcompiler.library_dirs or []:
# correct path when compiling in Cygwin but with normal Win
# Python
if d.startswith('/usr/lib'):
s,o = exec_command(['cygpath', '-w', d], use_tee=False)
if not s: d = o
- f_lib_dirs.append(d)
- library_dirs.extend(f_lib_dirs)
+ library_dirs.append(d)
for libname in self.fcompiler.libraries or []:
if libname not in libraries:
libraries.append(libname)