mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
43 lines
1.0 KiB
Bash
Executable File
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
|