diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-10-29 15:40:27 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-10-29 15:40:27 +0000 |
commit | e5b148d33a0e3a03036e036a6cd2bcfa13bc2d7a (patch) | |
tree | e89995762290f68f569dd45b8796a20aafe0d685 /scipy_distutils/fcompiler.py | |
parent | 01ac8b980da771f89f273229bf089d977fc2ae78 (diff) | |
download | numpy-e5b148d33a0e3a03036e036a6cd2bcfa13bc2d7a.tar.gz |
Fixing setup.py build_ext -O..
Diffstat (limited to 'scipy_distutils/fcompiler.py')
-rw-r--r-- | scipy_distutils/fcompiler.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scipy_distutils/fcompiler.py b/scipy_distutils/fcompiler.py index 7aa11a8c3..a778a20f1 100644 --- a/scipy_distutils/fcompiler.py +++ b/scipy_distutils/fcompiler.py @@ -573,8 +573,12 @@ class FCompiler(CCompiler): o_args = [self.library_switch.strip(),output_filename] else: o_args = [self.library_switch.strip()+output_filename] - ld_args = (objects + self.objects + - lib_opts + o_args) + + if type(self.objects) is type(''): + ld_args = objects + [self.objects] + else: + ld_args = objects + self.objects + ld_args = ld_args + lib_opts + o_args if debug: ld_args[:0] = ['-g'] if extra_preargs: |