-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David R. Morrison wrote:
| Here are some first thoughts about how to use "universal" (aka "fat")
| binaries with fink.
|

Building fat binaries is more problematic than that, unfortunately.
configure scripts do all kinds of checking that are true on one architecture
and not anouther and build code conditionally depending on those checks. In
order to configure a fat build, one needs to do something like:

CFLAGS="-arch ppc -arch ppc64 -arch i386" CXXFLAGS="-arch ppc -arch ppc64
- -arch i386"

Then the preprocessor checks in configure will fail, so you need to pick a
preprocessor, e.g.

CPP="gcc -arch ppc -E" CXXCPP="g++ -arch ppc -E"

Now you have chosen a preprocessor, you will get configure results for that
arch and could end up building an i386 binary that does not work.

I advise against the fat approach, I know Rob Braun tried it at some point
and had issues (I cc'ed him).

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQqTjvriDAg3OZTLPAQKhfAP8DUMk73UQjyYcSuY8tyLuU2HriKzxKKZc
f8JT3THuFa6AQXiWsIaNbR10CF4nDzcxUYEaT7RCBs2FyJAa+P3lHzsUU4I+aO37
XMZ2fKpumHdHBpHsklaWOiQWvbS4iq5ygeAiPJpJPX7jbGytZ6BzN9APoHzqQtu1
YEQmDniiRCY=
=ilFS
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to