diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-30 23:00:12 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-30 23:00:12 -0400 |
commit | 0f7fc864d98d3e8a852d3a6a835ae3331fde1bad (patch) | |
tree | 24b4ac4b7a476b0bb1607476531c5ba1a5f63a7e /binutils | |
parent | 39c272221a8baf3b3f2768d9de4f61abea57cf1f (diff) | |
download | spm_packages-0f7fc864d98d3e8a852d3a6a835ae3331fde1bad.tar.gz |
Current state
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/build.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/binutils/build.sh b/binutils/build.sh index 5f0b124..9743b96 100644 --- a/binutils/build.sh +++ b/binutils/build.sh @@ -6,7 +6,15 @@ revision=0 sources=( "https://ftp.gnu.org/gnu/${name}/${name}-${version}.tar.gz" ) -depends=("gcc") +build_depends=( + "bison" + "texinfo" + "m4" + "zlib" +) +depends=( + "zlib" +) src=${name}-${version} blddir=${src}_build @@ -20,10 +28,13 @@ function prepare() { } function build() { + export LD_LIBRARY_PATH="${_runtime}/lib:${_prefix}/lib64" + export LDFLAGS="$LDFLAGS -L${_runtime}/lib64" + export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${_runtime}/lib64/pkgconfig" ../${src}/configure \ --prefix=${_prefix} \ --libdir=${_prefix}/lib \ - --with-lib-path=${_prefix}/lib:${build_runtime}/lib:/lib64:/usr/lib64:/usr/local/lib64 \ + --with-lib-path=${_prefix}/lib:${_runtime}/lib:${_prefix}/lib64:${_runtime}/lib64:/lib64:/usr/lib64:/usr/local/lib:/usr/local/lib64 \ --target=x86_64-pc-linux-gnu \ --enable-shared \ --enable-lto \ |