On Feb 2, 2011, at 5:49 PM, James Gregurich wrote:

> I"m not sure what to do about this one. The expat port does not use 
> muniversal to do a universal build. The configure script fails when it 
> attempts to invoke the preprocessor. Is the correct answer to switch the port 
> to muniversal or is there another flaw for which I should be looking? I 
> suppose this is happening because I modified the system to put the arch flags 
> in CPPFLAGS. However, if you don't supply an arch flag of some kind when 
> building ppc on i386, it seems that should be incorrect behavior even if it 
> happens to work. It definitely doesn't work without the -arch flag when 
> building armv6 on x86_64. Can I get some guidance on what this system SHOULD 
> be doing?

configure scripts simply aren't good at cross-compiling. A typical approach is 
to run the configure script and just correct the results after the fact. A few 
of my ports do this by running ed scripts that replace definitions with 
appropriate #ifdef'd values.

- Toby
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to