2009-03-18 13:02:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
. config/options
|
|
|
|
|
|
|
|
|
|
$SCRIPTS/install ccache
|
2009-12-13 23:02:35 +01:00
|
|
|
$SCRIPTS/build gmp
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
setup_toolchain host
|
|
|
|
|
|
2009-05-16 23:35:27 +02:00
|
|
|
cd $PKG_BUILD
|
2010-02-20 18:24:39 +01:00
|
|
|
|
2009-03-18 13:02:53 +01:00
|
|
|
mkdir -p objdir
|
|
|
|
|
cd objdir
|
2010-02-20 18:24:39 +01:00
|
|
|
|
2009-03-18 13:02:53 +01:00
|
|
|
LDFLAGS="-Wl,-rpath,$ROOT/$TOOLCHAIN/lib" \
|
2010-02-20 18:24:39 +01:00
|
|
|
../configure --host=$HOST_NAME \
|
|
|
|
|
--build=$HOST_NAME \
|
|
|
|
|
--target=$TARGET_NAME \
|
|
|
|
|
--prefix=$ROOT/$TOOLCHAIN \
|
2009-03-18 13:02:53 +01:00
|
|
|
--enable-shared \
|
|
|
|
|
--with-gmp-lib="$ROOT/$TOOLCHAIN/lib" \
|
|
|
|
|
--with-gmp-include="$ROOT/$TOOLCHAIN/include" \
|
|
|
|
|
|
|
|
|
|
make
|
2009-12-13 23:02:35 +01:00
|
|
|
make install
|