Files
Arch-R/packages/toolchain/devel/binutils/build
Stephan Raue 899a0c9537 binutils:
- merge install script with build script
- remove gold support
- remove lto support
- remove plugin support
- add some usefull options
2010-06-16 09:19:06 +02:00

47 lines
1.1 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" ]; 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-werror \
--disable-multilib \
--disable-libada \
--disable-libssp \
--enable-version-specific-runtime-libs \
$WITH_64B_BFD \
--disable-nls
make configure-host
make
cp -v ../include/libiberty.h $SYSROOT_PREFIX/usr/include
make install