aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r--mesonbuild/compilers/c.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 393354d..bc90381 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 []