diff options
author | Dima Pasechnik <dima@pasechnik.info> | 2021-09-28 16:56:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 16:56:09 +0100 |
commit | 1ac3cbea412c7d9ff467a8e599609621887c6cdd (patch) | |
tree | 73a53d0e1b3c439f226d6d69c3afa1fc4c78db13 /numpy/distutils/fcompiler/nag.py | |
parent | ead3170f95b3baab31cb763156ac98e1da8a3205 (diff) | |
download | numpy-1ac3cbea412c7d9ff467a8e599609621887c6cdd.tar.gz |
ENH: nagfor - get_flags_linker_so() on darwin
On Darwin, `nagfor` needs the same linker flags as `nag`.
This hopefully completes #19968.
Diffstat (limited to 'numpy/distutils/fcompiler/nag.py')
-rw-r--r-- | numpy/distutils/fcompiler/nag.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/numpy/distutils/fcompiler/nag.py b/numpy/distutils/fcompiler/nag.py index 7df8ffe2c..580c4e1d3 100644 --- a/numpy/distutils/fcompiler/nag.py +++ b/numpy/distutils/fcompiler/nag.py @@ -15,6 +15,8 @@ class BaseNAGFCompiler(FCompiler): return None def get_flags_linker_so(self): + if sys.platform == 'darwin': + return ['-unsharedf95', '-Wl,-bundle,-flat_namespace,-undefined,suppress'] return ["-Wl,-shared"] def get_flags_opt(self): return ['-O4'] @@ -35,11 +37,6 @@ class NAGFCompiler(BaseNAGFCompiler): 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } - - def get_flags_linker_so(self): - if sys.platform == 'darwin': - return ['-unsharedf95', '-Wl,-bundle,-flat_namespace,-undefined,suppress'] - return BaseNAGFCompiler.get_flags_linker_so(self) def get_flags_arch(self): version = self.get_version() if version and version < '5.1': @@ -63,7 +60,6 @@ class NAGFORCompiler(BaseNAGFCompiler): 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } - def get_flags_debug(self): version = self.get_version() if version and version > '6.1': |