1
0
mirror of https://github.com/krglaws/MyLFS.git synced 2025-07-26 15:46:59 +00:00
Files
MyLFS-big_bash_script/phase4/binutils.sh
2023-02-18 23:22:36 -05:00

35 lines
639 B
Bash

# Binutils Phase 4
EXPECTOUT=$(expect -c 'spawn ls')
if [ "$EXPECTOUT" != "$(echo -ne 'spawn ls\r\n')" ]
then
echo $EXPECTOUT
exit 1
fi
mkdir build
cd build
../configure --prefix=/usr \
--sysconfdir=/etc \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd \
--with-system-zlib
make tooldir=/usr
if $RUN_TESTS
then
set +e
make -k check
set -e
fi
make tooldir=/usr install
rm -f /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a