nico - 2010-01-05

hi,
a month ago (with the cvs from this time, i was able to produce x86 && x86_64 versions of beecrypt on SnowLeopard.
grosso modo, here's what i did :

destdir=/Users/nico/code/beecrypt

make distclean

mkdir $destdir/intel;
mkdir $destdir/ppc;

export CC="gcc -arch ppc"
export CFLAGS="-mmacosx-version-min=10.5"
export CXX="g++ -arch ppc"
export CXXFLAGS="-mmacosx-version-min=10.5"
./configure --without-java --without-cplusplus --without-python -host=i386-apple-darwin --target=ppc-apple-darwin &&
make && cp .libs/libbeecrypt.7.dylib $destdir/ppc/;

make distclean
export CC="gcc -arch i386"
export CFLAGS="-mmacosx-version-min=10.5"
export CXX="g++ -arch i386"
export CXXFLAGS="-mmacosx-version-min=10.5"
./configure --without-java --without-cplusplus --without-python &&
make && cp .libs/libbeecrypt.7.dylib $destdir/intel/;

export CC="gcc -arch x86_64"
export CFLAGS="-mmacosx-version-min=10.5"
export CXX="g++ -arch x86_64"
export CXXFLAGS="-mmacosx-version-min=10.5"
./configure --without-java --without-cplusplus --without-python &&
make && cp .libs/libbeecrypt.7.dylib $destdir/x86/;

lipo -create intel/libbeecrypt.7.dylib ppc/libbeecrypt.7.dylib x86/libbeecrypt.7.dylib -output libbeecrypt.7.dylib

install_name_tool -id @executable_path/../lib/libbeecrypt.7.dylib libbeecrypt.7.dylib

hope this helps...
++
nicolas