aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-02-13 05:18:33 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-02-17 19:49:31 +0200
commit3dd039487ed80fe9cb354e38602ed5b3aefc51be (patch)
tree208d40a8d741024d8098cb547bf1962c73932d6e /mesonbuild/compilers.py
parente0fbde786c44da9aec61c6945beb80815547889e (diff)
downloadmeson-3dd039487ed80fe9cb354e38602ed5b3aefc51be.zip
meson-3dd039487ed80fe9cb354e38602ed5b3aefc51be.tar.gz
meson-3dd039487ed80fe9cb354e38602ed5b3aefc51be.tar.bz2
compilers: /LD is not needed for PIC support in DLLs
On Windows, the advantages of PIC are provided by the runtime DLL loader. /LD is also only valid as an argument to cl.exe, and the linker link.exe just barfs when it sees it. The code assumes that the compiler is the same as the linker which caused this problem to occur.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r--mesonbuild/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 5eaffaf..cb6b7c7 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -1128,7 +1128,7 @@ class VisualStudioCCompiler(CCompiler):
return ['/OUT:' + outputname]
def get_pic_args(self):
- return ['/LD']
+ return [] # PIC is handled by the loader on Windows
def get_std_shared_lib_link_args(self):
return ['/DLL']