Skip to content

Commit

Permalink
gcc12: Use 'classic' linker on macOS13 and newer
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed Sep 28, 2023
1 parent bcfe6fc commit 3b87c7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lang/gcc12/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ if { ${os.platform} eq "darwin" } {
patchfiles-append patch-darwin-gcc-${version}.diff
}

if {${os.platform} eq "darwin" && ${os.major} >= 22} {
# On macOS13 and newer ensure the 'legacy' linker is used as GCC currently has problems
# https://trac.macports.org/ticket/68255
# revert back to the 'classic' linker
configure.args-replace --with-ld=${prefix}/bin/ld --with-ld=${prefix}/bin/ld-classic
}

pre-configure {

# Set package info
Expand Down

0 comments on commit 3b87c7b

Please sign in to comment.