KDEGames and Compilers
Joshua Root
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 [1], 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:
>>
>>
>> http://trac.macports.org/browser/trunk/base/src/port1.0/portconfigure.tcl?rev=73708#L333
>
> 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.
- Josh
More information about the macports-dev
mailing list