msvc: Don't add dynamic link args, they're ignored
And they print a linker warning about unknown args.
@@ -1275,6 +1275,9 @@ class VisualStudioCCompiler(CCompiler):
def get_pic_args(self):
return [] # PIC is handled by the loader on Windows
+ def gen_export_dynamic_link_args(self, env):
+ return [] # Not applicable with MSVC
+
def get_std_shared_lib_link_args(self):
return ['/DLL']
