summaryrefslogtreecommitdiff
path: root/etc/pkgs/002-binutils.sh
blob: 4c2e13d1a4096c998590ae5114c2e3e46d907cf8 (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
27
#!/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} \
        --with-lib-path=${TOOLCHAIN_LIB}:/lib64:/usr/lib64:/usr/local/lib64 \
        --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 -j${_maxjobs}
    make install-strip
popd