compilers: Set the correct values for undefined modules on apple with icc
@@ -175,6 +175,10 @@ class CCompiler(Compiler):
# link.exe
return ['/FORCE:UNRESOLVED']
elif self.id == 'intel':
+ 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 []
