diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-06-02 14:54:52 +0000 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2010-06-02 14:54:52 +0000 |
commit | e786456968293b7a26fd99922ccc15de6d3fbccd (patch) | |
tree | d4b149d08d3f9b19f2498d1b37bef0c2ce9c6ce2 | |
parent | 18aac09194438f4c6ce1bb379a2beffa98c40391 (diff) | |
download | numpy-e786456968293b7a26fd99922ccc15de6d3fbccd.tar.gz |
BUG: Enable compiling Fortran code on OS X for ppc64 arch.
Thanks to David Warde-Farley. Fixes #1399.
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index b4bcded26..becdefad5 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -104,14 +104,14 @@ class GnuFCompiler(FCompiler): if sys.platform=='darwin': target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) # If MACOSX_DEPLOYMENT_TARGET is set, we simply trust the value - # and leave it alone. But, distutils will complain if the - # environment's value is different from the one in the Python - # Makefile used to build Python. We let disutils handle this + # and leave it alone. But, distutils will complain if the + # environment's value is different from the one in the Python + # Makefile used to build Python. We let disutils handle this # error checking. if not target: - # If MACOSX_DEPLOYMENT_TARGET is not set in the environment, - # we try to get it first from the Python Makefile and then we - # fall back to setting it to 10.3 to maximize the set of + # If MACOSX_DEPLOYMENT_TARGET is not set in the environment, + # we try to get it first from the Python Makefile and then we + # fall back to setting it to 10.3 to maximize the set of # versions we can work with. This is a reasonable default # even when using the official Python dist and those derived # from it. @@ -124,7 +124,7 @@ class GnuFCompiler(FCompiler): if target == '10.3': s = 'Env. variable MACOSX_DEPLOYMENT_TARGET set to 10.3' warnings.warn(s) - + opt.extend(['-undefined', 'dynamic_lookup', '-bundle']) else: opt.append("-shared") @@ -254,7 +254,7 @@ class Gnu95FCompiler(GnuFCompiler): if not sys.platform == 'darwin': return [] arch_flags = [] - for arch in ["ppc", "i686", "x86_64"]: + for arch in ["ppc", "i686", "x86_64", "ppc64"]: if _can_target(cmd, arch): arch_flags.extend(["-arch", arch]) return arch_flags |