From 73a53c48901e120a06d221c8cb4f02076e3b9888 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 29 Jan 2019 14:38:49 -0500 Subject: Introduce real toolchain --- etc/pkgs/002-binutils.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'etc/pkgs/002-binutils.sh') diff --git a/etc/pkgs/002-binutils.sh b/etc/pkgs/002-binutils.sh index bd119fe..83423be 100755 --- a/etc/pkgs/002-binutils.sh +++ b/etc/pkgs/002-binutils.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x name=binutils version=2.31.1 url=https://ftp.gnu.org/gnu/binutils/${name}-${version}.tar.gz @@ -10,7 +10,17 @@ mkdir -p binutils pushd binutils ../${name}-${version}/configure \ --prefix=${TOOLCHAIN} \ - --with-sysroot=${TOOLCHAIN} - make -j${_maxjobs} - make install + --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 -- cgit