diff --git a/lang/gcc14/Portfile b/lang/gcc14/Portfile index 77e43216609b9..2e248e2147dea 100644 --- a/lang/gcc14/Portfile +++ b/lang/gcc14/Portfile @@ -360,7 +360,7 @@ if { ${subport} ne ${libcxxname} } { } # libcxx is unavailable on PPC - if {${build_arch} ni [list ppc ppc64]} { + if {${build_arch} ni [list ppc ppc64] && ${os.major} > 8} { default_variants-append +stdlib_flag }