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

This commit is contained in:
Dylan Baker 2018-10-10 12:50:54 -07:00
parent 3ab9620180
commit 315d07d306
1 changed files with 5 additions and 1 deletions

View File

@ -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 []