Reinstate "compilers/c: Fix allow undefined link arg for PE/COFF"

This reinstates 2256e6314b, which was
lost in refactoring in 9f9cfd2139.
pull/4609/head
Martin Storsjö 6 years ago committed by Jussi Pakkanen
parent d64f93800f
commit 05e75ab3e7
  1. 3
      mesonbuild/compilers/compilers.py

@ -1538,6 +1538,9 @@ class GnuLikeCompiler(abc.ABC):
if self.compiler_type.is_osx_compiler:
# Apple ld
return ['-Wl,-undefined,dynamic_lookup']
elif self.compiler_type.is_windows_compiler:
# For PE/COFF this is impossible
return []
else:
# GNU ld and LLVM lld
return ['-Wl,--allow-shlib-undefined']

Loading…
Cancel
Save