chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] libgmp 64-bit on OS X


From: Zbigniew
Subject: [Chicken-hackers] libgmp 64-bit on OS X
Date: Sat, 8 Dec 2007 11:31:44 -0600

This message is for anyone experimenting with the 64-bit OS X build.
When compiling the numbers egg, you need a 64-bit version of libgmp.
However, I don't want to destroy the existing 32-bit version nor
maintain a separate copy.  Instead I build the 32-bit and 64-bit
versions of libgmp 4.2.2 in separate steps, then lipo the libraries
together.  Here is the recipe:

# 4.2.2 intel x86-64:
./configure             # auto-sets gcc -O2 -m64 -mtune=k8
make
make check
# backup this directory to gmp-4.2.2-64 [actually, we only need to
save .libs/libgmp.3.4.2.dylib]

# 4.2.2 intel x86:
make distclean
./configure ABI=32      # sets gcc -O2 -m32 -mtune=k8 -fomit-frame-pointer
make
make check

# Make a fat binary:
lipo -output .libs/libgmp.3.4.2.dylib -create \
    ../gmp-4.2.2-64/.libs/libgmp.3.4.2.dylib .libs/libgmp.3.4.2.dylib

sudo make install




reply via email to

[Prev in Thread] Current Thread [Next in Thread]