PGI -shared is for Linux only
@@ -61,9 +61,16 @@ class PGICompiler():
def get_no_warn_args(self) -> typing.List[str]:
return ['-silent']
+ def get_std_shared_lib_link_args(self) -> typing.List[str]:
+ # PGI -shared is Linux only.
+ if self.compiler_type.is_osx_compiler or self.compiler_type.is_windows_compiler:
+ return []
+ return ['-shared']
+
def get_pic_args(self) -> typing.List[str]:
+ # PGI -fPIC is Linux only.
if self.compiler_type.is_osx_compiler or self.compiler_type.is_windows_compiler:
- return [] # PGI -fPIC is Linux only.
+ return []
return ['-fPIC']
def openmp_flags(self) -> typing.List[str]:
