Files
Arch-R/packages/toolchain/devel/binutils/build

47 lines
1.1 KiB
Plaintext
Raw Normal View History

2009-03-18 13:02:53 +01:00
#!/bin/sh
. config/options
$SCRIPTS/install ccache
$SCRIPTS/install linux-headers
$SCRIPTS/build gmp
$SCRIPTS/build mpfr
$SCRIPTS/build ppl
$SCRIPTS/build cloog-ppl
2010-05-30 22:31:25 +02:00
$SCRIPTS/build libelf
2009-03-18 13:02:53 +01:00
if [ $TARGET_ARCH = "x86_64" ]; then
WITH_64B_BFD="--enable-64-bit-bfd"
fi
2009-03-18 13:02:53 +01:00
setup_toolchain host
cd $PKG_BUILD
2009-03-18 13:02:53 +01:00
mkdir -p objdir
cd objdir
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
--with-sysroot=$SYSROOT_PREFIX \
--with-gmp=$ROOT/$TOOLCHAIN \
--with-mpfr=$ROOT/$TOOLCHAIN \
--with-ppl=$ROOT/$TOOLCHAIN \
--with-cloog=$ROOT/$TOOLCHAIN \
2010-05-30 22:31:25 +02:00
--with-libelf=$ROOT/$TOOLCHAIN \
--enable-werror \
2009-03-18 13:02:53 +01:00
--disable-multilib \
--disable-libada \
--disable-libssp \
--enable-version-specific-runtime-libs \
$WITH_64B_BFD \
2009-03-18 13:02:53 +01:00
--disable-nls
make configure-host
2009-03-18 13:02:53 +01:00
make
2010-02-08 16:56:53 +01:00
cp -v ../include/libiberty.h $SYSROOT_PREFIX/usr/include
make install