mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.49 - Build libffi
This commit is contained in:
parent
8313733a62
commit
2be75a914c
2 changed files with 43 additions and 0 deletions
31
scripts/chapter8/8.49-libffi.sh
Normal file
31
scripts/chapter8/8.49-libffi.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf libffi-3.4.2.tar.gz
|
||||
cd libffi-3.4.2
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--with-gcc-arch=native \
|
||||
--disable-exec-static-tramp
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf libffi-3.4.2
|
|
@ -1127,3 +1127,15 @@ then
|
|||
stop_script "chapter8/8.48-libelf.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.49
|
||||
# ============
|
||||
echo "Building libffi"
|
||||
su -c "bash $SCRIPT/chapter8/8.49-libffi.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.49-libffi.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue