compilers: Set the correct values for undefined modules on apple with icc

pull/4359/head
Dylan Baker 6 years ago
parent 3ab9620180
commit 315d07d306
  1. 6
      mesonbuild/compilers/c.py

@ -175,7 +175,11 @@ class CCompiler(Compiler):
# link.exe # link.exe
return ['/FORCE:UNRESOLVED'] return ['/FORCE:UNRESOLVED']
elif self.id == 'intel': 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 # FIXME: implement other linkers
return [] return []

Loading…
Cancel
Save