[MacPorts] #64952: Can Macports base be built as universal? configure: error: C preprocessor "/lib/cpp" fails sanity check
MacPorts
noreply at macports.org
Fri Apr 8 20:23:43 UTC 2022
#64952: Can Macports base be built as universal? configure: error: C preprocessor
"/lib/cpp" fails sanity check
---------------------------+-------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: base | Version: 2.7.2
Resolution: invalid | Keywords: powerpc, leopard, ppc64
Port: |
---------------------------+-------------------------------------
Comment (by kencu):
look here for info on how MacPorts does this itself:
https://github.com/macports/macports-
ports/blob/master/sysutils/MacPorts/Portfile
this for example seems to do it for i386/ppc builds:
{{{
configure.cflags-append -arch ppc -arch i386
configure.args-append SHLIB_LDFLAGS='-arch ppc -arch i386'
}}}
You no doubt know by now that to do that manually (outside of a MacPorts
build) you have to take steps to add those flags manually into the
environment variables and args during your build.
--
Ticket URL: <https://trac.macports.org/ticket/64952#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list