diff options
Diffstat (limited to 'build-essential/stage2-binutils.bst')
-rw-r--r-- | build-essential/stage2-binutils.bst | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/build-essential/stage2-binutils.bst b/build-essential/stage2-binutils.bst new file mode 100644 index 00000000..a515d5dd --- /dev/null +++ b/build-essential/stage2-binutils.bst @@ -0,0 +1,38 @@ +kind: autotools + +sources: +- kind: git + url: upstream:binutils-tarball + track: binutils-2.25 + ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df + +depends: +- filename: build-essential/stage1.bst + type: build +- build-essential/stage2-linux-api-headers.bst +- build-essential/stage2-glibc.bst + +variables: + prefix: /tools + +environment: + PATH: /tools/bin:/usr/bin:/bin:/usr/sbin:/sbin + +config: + configure-commands: + - | + export STAGE2_SYSROOT="$(dirname $(dirname $(pwd)))" + export CXX="%{target-stage1}-g++ --sysroot=$STAGE2_SYSROOT" + # binutils has its own embedded libtool, which is old and strips out + # `--sysroot`. Work around by modifying the compiler command to + # include the sysroot flag + export CC="%{target-stage1}-gcc --sysroot=$STAGE2_SYSROOT" + ./configure --prefix="%{prefix}" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=%{target-stage1} \ + --target=%{target-stage1} + + build-commands: + - | + export STAGE2_SYSROOT="$(dirname $(dirname $(pwd)))" + make |