mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-14 17:09:45 +00:00
32 lines
367 B
Bash
32 lines
367 B
Bash
|
#!/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
|