27 lines
681 B
Text
27 lines
681 B
Text
|
wget -O binutils.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz
|
||
|
tar -xf binutils.tar.xz
|
||
|
cd binutils
|
||
|
chmod +x makeinfo
|
||
|
export PATH=$PATH:$PWD
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--with-lib-path=/usr/lib:/usr/local/lib \
|
||
|
--enable-targets=x86_64-pep \
|
||
|
--enable-deterministic-archives \
|
||
|
--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"
|