[MacPorts] #64900: nspr and nss do not respect macports.conf arch settings on 10.6.8 Rosetta
MacPorts
noreply at macports.org
Thu Aug 4 06:45:08 UTC 2022
#64900: nspr and nss do not respect macports.conf arch settings on 10.6.8 Rosetta
---------------------------+-------------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, snowleopard, rosetta
Port: nspr, nss |
---------------------------+-------------------------------------------
Comment (by barracuda156):
Adding the following solves the wrong arch problem:
{{{
platform darwin 10 {
if {${build_arch} eq "ppc"} {
# Otherwise -Di386 flag is added and build fails. See
nss/coreconf/Darwin.mk
build.env-append CPU_ARCH=ppc
}
}
}}}
Then the build fails on:
{{{
cc1: error: unrecognized command line option "-mcrypto"
cc1: error: unrecognized command line option "-mvsx"
make[4]: *** [Output.OBJD/Darwin_SINGLE_SHLIB/sha512.o] Error 1
make[4]: Leaving directory
`/opt/local/var/macports/build/_opt_PPCRosettaPorts_net_nss/nss/work/nss-3.81/nss/lib/freebl'
make[3]: *** [freebl_FREEBL_BUILD_SINGLE_SHLIB] Error 2
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_PPCRosettaPorts_net_nss/nss/work/nss-3.81/nss/lib/freebl'
make[2]: *** [freebl] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64900#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list