[wx-dev] wxMac: Universal Binary question

Anders F Björklund afb at algonet.se
Tue Nov 14 07:12:21 PST 2006


Kevin Hock wrote:

> AFAIK, no, this is not the case, at least for static libraries. If 
> your linker only asks for the PPC, or just the Intel, that's all that 
> will be included in your executable.

That is not what happened, though. The application I am trying to build 
(C::B) is not ready for universal binaries (just yet), so I need to 
build two different and lipo them together at the end.

But when I trink to link for instance the x86 version, I get an error 
like:
"cputype (7, architecture i386) does not match cputype (18) for 
specified -arch flag: ppc (file not loaded)"

To make this work I need to edit my wx-config and delete the "-arch ppc 
-arch i386" from the LDFLAGS so that it will only link for the 
particular architecture that I am building at the moment.

Just wondered what the usefulness of hardcoding the arch in wx-config 
was...

--anders





More information about the wx-dev mailing list