Skip to content

Commit 329b830

Browse files
committed
mpich: enable -default on powerpc
1 parent d44b8f8 commit 329b830

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

science/mpich/Portfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ dict set clist clang18 {macports-clang-18}
8585
dict set clist clang19 {macports-clang-19}
8686

8787
# Only enable default (gcc), and Xcode clang, for MacOS 10.7 and later
88-
if { ${os.major} >= 11 } {
88+
if { ${os.major} >= 10 } {
8989
dict set clist default {}
90-
dict set clist clang {clang}
90+
if { ${build_arch} ni [list ppc ppc64] } {
91+
dict set clist clang {clang}
92+
}
9193
} else {
9294
lappend clist_unsupported \
9395
default clang
@@ -152,7 +154,7 @@ if {${subport_enabled}} {
152154
mpiutil_set_binary_eligibility \
153155
${subport} ${cname}
154156

155-
depends_build-append port:pkgconfig
157+
depends_build-append path:bin/pkg-config:pkgconfig
156158
depends_lib-append port:libxml2
157159

158160
if {${cname} eq "mp"} {
@@ -184,6 +186,9 @@ if {${subport_enabled}} {
184186
# Hopefully avoid double-rpath issues.
185187
compilers.add_gcc_rpath_support no
186188

189+
compiler.blacklist-append \
190+
*gcc-4.0 *gcc-4.2
191+
187192
if {${os.major} < 12} {
188193
# MPICH requires OpenCL version 1.2, which was not introduced until OS X Mountain Lion
189194
configure.args-append \

0 commit comments

Comments
 (0)