From 315d07d3062718b270ee90f0970d66715716fdb6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 10 Oct 2018 12:50:54 -0700 Subject: [PATCH] compilers: Set the correct values for undefined modules on apple with icc --- mesonbuild/compilers/c.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 393354d36..bc90381d1 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -175,7 +175,11 @@ class CCompiler(Compiler): # link.exe return ['/FORCE:UNRESOLVED'] elif self.id == 'intel': - return ['-Wl,--allow-shlib-undefined'] + if self.compiler_type.is_osx_compiler: + # Apple ld + return ['-Wl,-undefined,dynamic_lookup'] + else: + return ['-Wl,--allow-shlib-undefined'] # FIXME: implement other linkers return []