summaryrefslogtreecommitdiff
path: root/scipy_distutils/gnufcompiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-02-17 15:24:52 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-02-17 15:24:52 +0000
commitb94984a29f4e4475eb10e8ad777a00e3ab1b5c5a (patch)
treec6c914b4485778bf3d4f9005a2afa89b964dff24 /scipy_distutils/gnufcompiler.py
parent7c7526c87ab02d9eabe501f3c5aadc5aca49fbe1 (diff)
downloadnumpy-b94984a29f4e4475eb10e8ad777a00e3ab1b5c5a.tar.gz
darwin: using -framework Python when linking
Diffstat (limited to 'scipy_distutils/gnufcompiler.py')
-rw-r--r--scipy_distutils/gnufcompiler.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/scipy_distutils/gnufcompiler.py b/scipy_distutils/gnufcompiler.py
index 75276b0d4..1adfae348 100644
--- a/scipy_distutils/gnufcompiler.py
+++ b/scipy_distutils/gnufcompiler.py
@@ -38,16 +38,18 @@ class GnuFCompiler(FCompiler):
if os.name != 'nt' and sys.platform!='cygwin':
pic_flags = ['-fPIC']
- def get_linker_so(self):
- # win32 linking should be handled by standard linker
- # Darwin g77 cannot be used as a linker.
- if re.match(r'(darwin)', sys.platform):
- return
- return FCompiler.get_linker_so(self)
+ #def get_linker_so(self):
+ # # win32 linking should be handled by standard linker
+ # # Darwin g77 cannot be used as a linker.
+ # #if re.match(r'(darwin)', sys.platform):
+ # # return
+ # return FCompiler.get_linker_so(self)
def get_flags_linker_so(self):
- opt = FCompiler.get_flags_linker_so(self)
- if not re.match(r'(darwin)', sys.platform):
+ opt = []
+ if sys.platform=='darwin':
+ opt.append('-framework','Python')
+ else:
opt.append("-shared")
if sys.platform[:5]=='sunos':
# SunOS often has dynamically loaded symbols defined in the