summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scipy_distutils/gnufcompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scipy_distutils/gnufcompiler.py b/scipy_distutils/gnufcompiler.py
index 5e0ed1031..619b7d468 100644
--- a/scipy_distutils/gnufcompiler.py
+++ b/scipy_distutils/gnufcompiler.py
@@ -48,7 +48,7 @@ class GnuFCompiler(FCompiler):
def get_flags_linker_so(self):
opt = []
if sys.platform=='darwin':
- if sys.executable.startswith('/usr/bin'):
+ if os.path.realpath(sys.executable).startswith('/System'):
# This is when Python is from Apple framework
opt.extend(["-Wl,-framework","-Wl,Python"])
#else we are running in Fink python.