From 3dd039487ed80fe9cb354e38602ed5b3aefc51be Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 13 Feb 2016 05:18:33 +0530 Subject: 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. --- mesonbuild/compilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers.py') 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'] -- cgit v1.1