blob: 62ee3cbb466c495aff46333b0c7d2c1c9b6e9393 [file] [log] [blame] [edit]
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
if root.target_os in ["Windows"]:
config.unsupported = True
# AIX usually usually makes use of an explicit export list when linking a shared
# object, since the linker doesn't export anything by default.
if root.target_os in ["AIX"]:
config.substitutions.append(("%shared_linker_xopts", "-Wl,-bE:shr.exp"))
else:
config.substitutions.append(("%shared_linker_xopts", ""))