lfs-scripts/scripts/chapter8/8.18-binutils.sh

43 lines
654 B
Bash
Raw Normal View History

2023-01-11 05:50:15 +00:00
#!/bin/bash
cd /sources
tar xf binutils-2.39.tar.xz
cd binutils-2.39
expect -c "spawn ls"
mkdir -v 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
if [ $? -ne 0 ]
then
exit 1
fi
make tooldir=/usr -j5
if [ $? -ne 0 ]
then
exit 1
fi
make -k check
make tooldir=/usr install
rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a
cd /sources
rm -rf binutils-2.39