mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 8.18 - Build binutils
This commit is contained in:
parent
0426b5af7d
commit
4e305ab825
2 changed files with 55 additions and 0 deletions
42
scripts/chapter8/8.18-binutils.sh
Normal file
42
scripts/chapter8/8.18-binutils.sh
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/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
|
||||
|
|
@ -750,3 +750,16 @@ then
|
|||
stop_script "chapter8/8.17-dejagnu.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.18
|
||||
# ============
|
||||
echo "Building binutils"
|
||||
su -c "bash $SCRIPT/chapter8/8.18-binutils.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.18-binutils.sh"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue