lfs-scripts/scripts/chapter6/6.17-binutils.sh

40 lines
632 B
Bash
Raw Normal View History

2023-01-09 10:08:53 +00:00
#!/bin/bash
cd $LFS/sources
tar xf binutils-2.39.tar.xz
cd binutils-2.39
sed '6009s/$add_dir//' -i ltmain.sh
mkdir -v build
cd build
../configure \
--prefix=/usr \
--build=$(../config.guess) \
--host=$LFS_TGT \
--disable-nls \
--enable-shared \
--enable-gprofng=no \
--disable-werror \
--enable-64-bit-bfd
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS install
rm -v $LFS/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.{a,la}
cd $LFS/sources
rm -rf binutils-2.39