forked from I2P_Developers/i2p.i2p

* Updated jbigi build scripts for OSX. 2005-01-21 jrandom * Added support for OSX to the NativeBigInteger code so that it will look in the classpath for libjbigi-osx-none.jnilib. At the moment, that file is not bundled with the shipped jbigi.jar yet though.
22 lines
389 B
Bash
22 lines
389 B
Bash
#/bin/sh
|
|
|
|
echo "Building the jbigi library with GMP"
|
|
|
|
echo "Extracting GMP..."
|
|
tar -xjf gmp-4.1.4.tar.bz2
|
|
echo "Building..."
|
|
mkdir -p lib/
|
|
mkdir -p bin/local
|
|
cd bin/local
|
|
case `uname -sr` in
|
|
Darwin*)
|
|
# --with-pic is required for static linking
|
|
../../gmp-4.1.4/configure --with-pic;;
|
|
*)
|
|
../../gmp-4.1.4/configure;;
|
|
esac
|
|
make
|
|
sh ../../build_jbigi.sh static
|
|
cp *jbigi???* ../../lib/
|
|
cd ../..
|