2
0
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:
Ethan 2022-07-12 18:31:52 -05:00
parent afa48a5625
commit 27436d24cd

View File

@ -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"