diff --git a/multimedia/ffmpeg6/Portfile b/multimedia/ffmpeg6/Portfile index 308085c34fa96..32b5d1aa65653 100644 --- a/multimedia/ffmpeg6/Portfile +++ b/multimedia/ffmpeg6/Portfile @@ -315,7 +315,7 @@ platform darwin { # this port requires '-ld_classic' to build successfully with the toolchains from Xcode 15 or Command Line Tools 15. # # TODO: This is a temporary solution, the classic linker will be removed in a future release by Apple. - if { ( [vercmp ${xcodeversion} 15 ] >= 0 ) || ( [vercmp ${xcodecltversion} 15 ] >= 0 ) } { + if { ${os.major} == 23 && ( [vercmp ${xcodeversion} 15 ] >= 0 ) || ( [vercmp ${xcodecltversion} 15 ] >= 0 ) } { configure.ldflags-append \ -Wl,-ld_classic }