Files
Arch-R/packages/toolchain/devel/binutils/build
Stephan Raue 23f550c1b3 binutils:
- enable gold and plugins
2010-06-03 16:39:57 +02:00

43 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/install ccache
$SCRIPTS/install linux-headers
$SCRIPTS/build gmp
$SCRIPTS/build mpfr
$SCRIPTS/build ppl
$SCRIPTS/build cloog-ppl
$SCRIPTS/build libelf
if [ $TARGET_ARCH = "x86_64" -o $TARGET_ARCH = "powerpc64" ]; then
WITH_64B_BFD="--enable-64-bit-bfd"
fi
setup_toolchain host
cd $PKG_BUILD
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 \
--with-libelf=$ROOT/$TOOLCHAIN \
--enable-gold=both/ld \
--enable-plugins \
--enable-lto \
--disable-werror \
--disable-multilib \
$WITH_64B_BFD \
--disable-nls
make configure-host
make
cp -v ../include/libiberty.h $SYSROOT_PREFIX/usr/include