From 05e75ab3e736659fab509b394282ef65ef78be19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 8 Dec 2018 17:53:51 +0200 Subject: [PATCH] Reinstate "compilers/c: Fix allow undefined link arg for PE/COFF" This reinstates 2256e6314b610b8f6645d0c5384536001ddeccf9, which was lost in refactoring in 9f9cfd21396db5cd5eb1711916c8b0c6e433c702. --- mesonbuild/compilers/compilers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index bdc90dab3..e27ae2b3b 100644 --- a/mesonbuild/compilers/compilers.py +++ b/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']