forked from kiss-community/repo
Merge pull request #75 from ehawkvu/static-binutils
binutils: build some binaries statically
This commit is contained in:
commit
4814193f5c
@ -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