Skip to content

Commit

Permalink
root6: Add workaround for Xcode 15 linker issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed Oct 4, 2023
1 parent 311b6e0 commit 41cce53
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions science/root6/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,18 @@ if {${os.platform} eq "darwin" && ${os.major} >= 20} {
configure.sdk_version
}

if {${os.platform} eq "darwin" && ${os.major} >= 22} {
if { [vercmp ${xcodeversion} >= 15.0] || [vercmp ${xcodecltversion} >= 15.0] } {
# On macOS13 and newer ensure the 'legacy' linker is used as GCC currently has problems
# with the new default linker in Xcode 15. See e.g.
# https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking
# https://discussions.apple.com/thread/255137447
# https://developer.apple.com/forums/thread/737707
# https://github.com/Homebrew/homebrew-core/issues/145991
configure.ldflags-append -Wl,-ld_classic
}
}

pre-configure {
# Force use of system python in build scripts
# Find command finds text files containing the string to be replaced.
Expand Down

0 comments on commit 41cce53

Please sign in to comment.