aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/compilers/mixins/pgi.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py
index 6cb8b45..0613e79 100644
--- a/mesonbuild/compilers/mixins/pgi.py
+++ b/mesonbuild/compilers/mixins/pgi.py
@@ -66,9 +66,11 @@ class PGICompiler():
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']
+ if self.compiler_type.is_windows_compiler:
+ return ['-Bdynamic', '-Mmakedll']
+ elif not self.compiler_type.is_osx_compiler:
+ return ['-shared']
+ return []
def get_pic_args(self) -> typing.List[str]:
# PGI -fPIC is Linux only.