diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-03-21 12:36:42 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-03-21 12:36:42 +0000 |
commit | 24e2b51f2b81b6b48376a5b4facbcddb4caad177 (patch) | |
tree | 3fbebe6b77a30d35b5a8f67dd652e9b1556e3988 /gnu-toolchain/stage1-binutils.bst | |
parent | 19f5819c58225e13cda8c239c318ff9bd779807d (diff) | |
download | definitions-24e2b51f2b81b6b48376a5b4facbcddb4caad177.tar.gz |
Renamed build-essential to gnu-toolchain
Diffstat (limited to 'gnu-toolchain/stage1-binutils.bst')
-rw-r--r-- | gnu-toolchain/stage1-binutils.bst | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu-toolchain/stage1-binutils.bst b/gnu-toolchain/stage1-binutils.bst new file mode 100644 index 00000000..f22a4458 --- /dev/null +++ b/gnu-toolchain/stage1-binutils.bst @@ -0,0 +1,38 @@ +kind: autotools + +sources: +- kind: git + url: upstream:binutils-tarball + track: binutils-2.25 + ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df + +depends: +- gnu-toolchain/gnome-platform.bst +- gnu-toolchain/gnome-sdk.bst + +variables: + prefix: /tools + +environment: + PATH: /tools/bin:/usr/bin:/bin:/usr/sbin:/sbin + +config: + configure-commands: + # We set the sysroot location dynamically at runtime by passing + # `--sysroot` to GCC, so we need to build a linker with sysroot support. + # We set it to a non-existent directory as a safety net to avoid looking + # at the host dirs in case we forget to set the sysroot. Setting the + # lib path is vital to avoid the tools we build linking to the libraries + # on the host system; the '=' makes the path we give relative to the + # sysroot, which we can then set at runtime by passing -Wl,--sysroot to + # GCC. Although nothing should be installed on /lib64, we configure the + # linker to look at that directory as well to make things more robust + # (currently GCC installs libraries to this directory at least on + # x86_64). + + - | + %{configure} --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$(sh config.guess) \ + --target=%{target-stage1} \ + --with-sysroot=/nonexistentdir --with-lib-path="=%{prefix}/lib:=%{prefix}/lib64" |