[wx-dev] wxMac: Universal Binary question
Anders F Björklund
afb at algonet.se
Wed Nov 15 01:07:12 PST 2006
Vadim Zeitlin wrote:
> They won't have problems with adding -arch options to their own build
> flags neither. But unless I seriously misunderstood the situation,
> currently it's impossible to build anything but universal application
> binary with universal binary of wx. I can't help wondering if you're
> serious when you write that this situation is somehow acceptable...
> What do
> people who want x86-only build of their application are supposed to do?
> Rebuild wx specially for this?
The "problem", if you want to call it that, is that wx-config adds
the fat arch to the ldflags but not to the cflags/cxxflags output.
So when you compile your own code, it will use your own flags and
possibly build single-arch objects/libraries (i.e. the gcc default)
But when you then try to link it with wxWidgets and use the --libs
option to wx-config, it will then search for fat code and fail...
So when we do revise this, it should probably add the flags to all
three of the cflags/cxxflags/ldflags or to neither one of them ?
--anders
More information about the wx-dev
mailing list