repo/core/binutils/build

36 lines
702 B
Plaintext
Raw Normal View History

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
2022-09-27 17:20:09 +00:00
export PATH="$PATH:$PWD"
2020-02-01 15:27:34 +00:00
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 \
--enable-deterministic-archives \
--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 \
2022-08-05 14:07:37 +00:00
--disable-gprofng \
2019-05-18 16:06:11 +00:00
--with-mmap \
2023-05-02 00:26:40 +00:00
--with-system-zlib \
--without-zstd
2019-05-18 16:06:11 +00:00
2020-05-11 07:07:28 +00:00
make configure-host
make tooldir=/usr
2023-03-02 14:40:00 +00:00
make tooldir=/usr DESTDIR="$1" install
ln -sf ld.bfd "$1/usr/bin/ld"