blob: 83423be27010c5afdbea9e11c1767d216e440378 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash -x
name=binutils
version=2.31.1
url=https://ftp.gnu.org/gnu/binutils/${name}-${version}.tar.gz
curl -LO ${url}
tar xf ${name}-${version}.tar.gz
mkdir -p binutils
pushd binutils
../${name}-${version}/configure \
--prefix=${TOOLCHAIN} \
--target=x86_64-pc-linux-gnu \
--enable-shared \
--enable-lto \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-threads \
--disable-static \
--disable-multilib \
--with-sysroot=/ \
--with-tune=generic
make -j4
make install-strip
popd
|