mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 07:10:16 -07:00
binutils: build some binaries statically
This commit is contained in:
parent
afa48a5625
commit
27436d24cd
@ -30,4 +30,12 @@ make configure-host
|
||||
make tooldir=/usr
|
||||
make tooldir=/usr install
|
||||
|
||||
# These programs are safe to build statically.
|
||||
cd binutils
|
||||
make clean-binPROGRAMS
|
||||
make LDFLAGS="$LDFLAGS -all-static"
|
||||
for f in *; do
|
||||
[ -e "$1/usr/bin/$f" ] && mv -f "$f" "$1/usr/bin/$f"
|
||||
done
|
||||
|
||||
ln -sf ld.bfd "$1/usr/bin/ld"
|
||||
|
Loading…
Reference in New Issue
Block a user