lfs-scripts/scripts/chapter5/5.2-binutils.sh

33 lines
454 B
Bash
Raw Normal View History

2023-01-06 09:13:50 +00:00
#!/bin/bash
2023-01-06 09:29:34 +00:00
cd $LFS/sources
tar xf binutils-2.39.tar.xz
cd $LFS/sources/binutils-2.39
2023-01-06 09:21:03 +00:00
2023-01-06 09:13:50 +00:00
mkdir -v build
cd build
../configure --prefix=$LFS/tools \
--with-sysroot=$LFS \
--target=$LFS_TGT \
--disable-nls \
--enable-gprofng=no \
--disable-werror
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install
2023-01-08 10:13:27 +00:00
cd $LFS/sources
rm -rf binutils-2.39