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