18 lines · python
1def getRoot(config):2 if not config.parent:3 return config4 return getRoot(config.parent)5 6 7root = getRoot(config)8 9if root.target_os in ["Windows"]:10 config.unsupported = True11 12# AIX usually usually makes use of an explicit export list when linking a shared13# object, since the linker doesn't export anything by default.14if root.target_os in ["AIX"]:15 config.substitutions.append(("%shared_linker_xopts", "-Wl,-bE:shr.exp"))16else:17 config.substitutions.append(("%shared_linker_xopts", ""))18