summaryrefslogtreecommitdiff
path: root/etc/pkgs/002-binutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/pkgs/002-binutils.sh')
-rwxr-xr-xetc/pkgs/002-binutils.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/etc/pkgs/002-binutils.sh b/etc/pkgs/002-binutils.sh
new file mode 100755
index 0000000..4c2e13d
--- /dev/null
+++ b/etc/pkgs/002-binutils.sh
@@ -0,0 +1,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