diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-18 12:56:22 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-18 12:56:22 -0500 |
commit | 13984f725db156cbc952d0afe90f27da15a0b85d (patch) | |
tree | b3a39b75ecaecca11ee1525a99153a7606e460cb /binutils | |
download | spm_packages-13984f725db156cbc952d0afe90f27da15a0b85d.tar.gz |
Initial commit
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/build.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/binutils/build.sh b/binutils/build.sh new file mode 100644 index 0000000..24e2185 --- /dev/null +++ b/binutils/build.sh @@ -0,0 +1,43 @@ +#!/bin/bash +disable_base=1 +name=binutils +version=2.31.1 +revision=0 +sources=( + "https://ftp.gnu.org/gnu/${name}/${name}-${version}.tar.gz" +) +depends=("gcc") + +src=${name}-${version} +blddir=${src}_build + + +function prepare() { + set -x + tar xf ${name}-${version}.tar.gz + mkdir -p ${blddir} + cd "${blddir}" +} + +function build() { + ../${src}/configure \ + --prefix=${_prefix} \ + --libdir=${_prefix}/lib \ + --with-lib-path=${_prefix}/lib:${build_runtime}/lib:/lib64:/usr/lib64:/usr/local/lib64 \ + --target=x86_64-pc-linux-gnu \ + --enable-shared \ + --enable-lto \ + --enable-ld=default \ + --enable-plugins \ + --enable-threads \ + --disable-static \ + --disable-multilib \ + --with-system-zlib \ + --with-sysroot=/ \ + --with-tune=generic + make -j${_maxjobs} +} + +function package() { + make install-strip DESTDIR="${_pkgdir}" +} |