mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-09 23:19:44 +00:00
Add 6.17 - Build binutils
This commit is contained in:
parent
60d82c80a6
commit
0f1e1fa648
2 changed files with 50 additions and 0 deletions
39
scripts/chapter6/6.17-binutils.sh
Normal file
39
scripts/chapter6/6.17-binutils.sh
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/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
|
|
@ -371,4 +371,15 @@ then
|
|||
stop_script "chapter6/6.16-xz.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.17
|
||||
# ============
|
||||
echo "Building 6.18"
|
||||
su - lfs -c "$PWD/chapter6/6.17-binutils.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.17-binutils.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue