KDEGames and Compilers
jmr at macports.org
Fri Feb 11 20:09:14 PST 2011
On 2011-2-12 05:27 , Jeremy Lavergne wrote:
>>> It looks like kdegames4 @4.6.0 needs gcc4.4 or newer , which isn't a big deal in it's own: dependencies atlas/numpy make use of it as well. Unfortunately the current build setup passes -arch to the macports-gcc-4.4.
>> What is this "current build setup"?
> I mean doing nothing special: using the Portfile as-is with configure.compiler set to macports-gcc-4.4.
>>> Do we have a way of stopping that -arch flag from showing up? It might also be from PortGroup files.
>> MacPorts base should already know not to pass -arch flags to compilers that don't know how to handle them, as long as you're specifying the compiler by using configure.compiler. See proc portconfigure::arch_flag_supported in portconfigure.tcl:
> Then I'd be left assuming something in CMake might be forcing this then, or perhaps flags for CMake in Qt/KDE PortGroups.
Yeah, I'd say it's cmake not realising that the compiler you're using
doesn't support -arch. The portgroup probably needs a knob to let you
tell it not to pass -DCMAKE_OSX_ARCHITECTURES to configure.
More information about the macports-dev