mirror of
https://github.com/krglaws/MyLFS.git
synced 2025-07-26 15:46:59 +00:00
35 lines
639 B
Bash
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
|
|
|