mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
22 lines
674 B
Bash
Executable File
22 lines
674 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. config/options
|
|
|
|
$SCRIPTS/build toolchain
|
|
|
|
# bash fails to compile with GCC 4.5.0's link time optimization.
|
|
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
|
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
|
|
|
cd $PKG_BUILD
|
|
./configure --host=$TARGET_NAME \
|
|
--build=$HOST_NAME \
|
|
--prefix=/usr \
|
|
--bindir=/bin \
|
|
--with-gnu-ld \
|
|
--without-bash-malloc \
|
|
--without-installed-readline \
|
|
|
|
make
|