[MacPorts] #21424: mesa: can't build i386 on Snow Leopard
MacPorts
noreply at macports.org
Thu Oct 1 19:56:21 PDT 2009
#21424: mesa: can't build i386 on Snow Leopard
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: jeremyhu@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: | Port: mesa
-------------------------------------+--------------------------------------
Comment(by srm@…):
I had the same problem here on Snow Leopard.
Set build_arch to i386 in macports.conf and it didn't work.
I've added the following lines to the Portfile's post_patch section
{{{
reinplace "s:CFLAGS = :CFLAGS = -arch i386:g"
${worksrcpath}/configs/darwin
reinplace "s:CXXFLAGS = :CXXFLAGS = -arch i386:g"
${worksrcpath}/configs/darwin
#set correct flags for the AppleBuild
reinplace "s:GL_CFLAGS=:GL_CFLAGS=-arch i386 :g"
${worksrcpath}/../AppleSGLX-57/Makefile
reinplace "s:GL_LDFLAGS=:GL_LDFLAGS=-arch i386 :g"
${worksrcpath}/../AppleSGLX-57/Makefile
reinplace "s:\$\(CC\) tests/glxinfo:\$\(CC\) -arch i386
tests/glxinfo:g" ${worksrcpath}/../AppleSGLX-57/Makefile
reinplace "s:\$\(CC\) tests/glxgears:\$\(CC\) -arch i386
tests/glxgears:g" ${worksrcpath}/../AppleSGLX-57/Makefile
}}}
It works now. Probably due to "use_config no" there's no hope using normal
configure._.append and the different build's didn't use the correct
C/XXFlags
--
Ticket URL: <http://trac.macports.org/ticket/21424#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list