2019-05-18 16:06:11 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-02-01 15:27:34 +00:00
|
|
|
cat > makeinfo <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
printf 'makeinfo (GNU texinfo) 5.2\n'
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x makeinfo
|
|
|
|
export PATH=$PATH:$PWD
|
|
|
|
|
2019-05-18 16:06:11 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2020-05-11 07:07:28 +00:00
|
|
|
--with-lib-path=/usr/lib:/usr/local/lib \
|
2019-05-18 16:06:11 +00:00
|
|
|
--enable-targets=x86_64-pep \
|
2020-10-27 06:25:54 +00:00
|
|
|
--enable-deterministic-archives \
|
2021-08-17 04:53:05 +00:00
|
|
|
--enable-gold \
|
2020-04-25 07:14:59 +00:00
|
|
|
--enable-lto \
|
|
|
|
--enable-ld=default \
|
|
|
|
--enable-plugins \
|
2019-05-18 16:06:11 +00:00
|
|
|
--disable-multilib \
|
|
|
|
--disable-werror \
|
2020-03-04 01:34:49 +00:00
|
|
|
--disable-gdb \
|
2020-02-01 15:27:34 +00:00
|
|
|
--disable-nls \
|
2020-03-04 01:34:49 +00:00
|
|
|
--disable-readline \
|
|
|
|
--disable-gprof \
|
2019-05-18 16:06:11 +00:00
|
|
|
--with-mmap \
|
2020-03-04 01:35:35 +00:00
|
|
|
--with-system-zlib
|
2019-05-18 16:06:11 +00:00
|
|
|
|
2020-05-11 07:07:28 +00:00
|
|
|
make configure-host
|
|
|
|
make tooldir=/usr
|
2021-07-15 09:00:39 +00:00
|
|
|
make tooldir=/usr install
|
2020-09-17 07:04:12 +00:00
|
|
|
|
2022-07-12 23:31:52 +00:00
|
|
|
# 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
|
|
|
|
|
2020-09-17 07:04:12 +00:00
|
|
|
ln -sf ld.bfd "$1/usr/bin/ld"
|