2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00
repo/core/binutils/build
Dylan Araps 9ceaf51444
binutils: various changes
- Disable gold linker.
- Symlink ld to ld.bfd.
- Drop /usr/x86_64-bla-nla directory.
2020-09-17 10:04:12 +03:00

33 lines
618 B
Bash
Executable File

#!/bin/sh -e
cat > makeinfo <<EOF
#!/bin/sh
printf 'makeinfo (GNU texinfo) 5.2\n'
EOF
chmod +x makeinfo
export PATH=$PATH:$PWD
./configure \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--enable-targets=x86_64-pep \
--disable-gold \
--enable-lto \
--enable-ld=default \
--enable-plugins \
--disable-multilib \
--disable-werror \
--disable-gdb \
--disable-nls \
--disable-readline \
--disable-gprof \
--with-mmap \
--with-system-zlib
make configure-host
make tooldir=/usr
make DESTDIR="$1" tooldir=/usr install
ln -sf ld.bfd "$1/usr/bin/ld"