Building gmp 32-bit and 64-bit intel binary on Mac OS X 10.6.4
marc.glisse at inria.fr
Mon Sep 13 22:32:14 CEST 2010
On Mon, 13 Sep 2010, Elvis Dowson wrote:
> I would like to build a gmp combined 32-bit and 64-bit intel
> binary for Mac OS X 10.6.4.
Do you really need that?
> Would someone be able to share the procedure for doing this please?
Build the 32 bit one, then completely separately build the 64 bit one,
then use some tool (is it lipo?) to combine them (no idea if this really
works, but it looks like the most likely bet). Note that the header file
gmp.h may not be the same in both cases, so you'll have to add some
#ifdefs to it if you want a single file.
> I'm getting some compilation errors. I know I should probably be
> specifying ABI=32 and ABI=64, but I don't know how to get it to build
> the combined library in one shot.
Sorry, no can do.
More information about the gmp-discuss