Workaround bug in XCode 14.2 linker not respecting RTLD_LAZY

* See https://github.com/oracle/truffleruby/issues/3390
This commit is contained in:
Benoit Daloze
2024-01-16 16:42:00 +01:00
parent c6e5aea595
commit b203567269
2 changed files with 12 additions and 0 deletions
Generated Vendored
+6
View File
@@ -65011,6 +65011,12 @@ async function install(platform, engine, version) {
}
}
// https://github.com/oracle/truffleruby/issues/3390
if (engine.startsWith('truffleruby') && common.floatVersion(version) >= 24.0 && !common.isSelfHostedRunner() && common.getOSNameVersionArch() === 'macos-12-x64') {
console.log('Setting MACOSX_DEPLOYMENT_TARGET=11.0 to workaround bug in XCode 14.2 linker not respecting RTLD_LAZY, see https://github.com/oracle/truffleruby/issues/3390')
core.exportVariable('MACOSX_DEPLOYMENT_TARGET', '11.0')
}
return rubyPrefix
}
+6
View File
@@ -58,6 +58,12 @@ export async function install(platform, engine, version) {
}
}
// https://github.com/oracle/truffleruby/issues/3390
if (engine.startsWith('truffleruby') && common.floatVersion(version) >= 24.0 && !common.isSelfHostedRunner() && common.getOSNameVersionArch() === 'macos-12-x64') {
console.log('Setting MACOSX_DEPLOYMENT_TARGET=11.0 to workaround bug in XCode 14.2 linker not respecting RTLD_LAZY, see https://github.com/oracle/truffleruby/issues/3390')
core.exportVariable('MACOSX_DEPLOYMENT_TARGET', '11.0')
}
return rubyPrefix
}