summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-binutils.def
diff options
context:
space:
mode:
Diffstat (limited to 'strata/build-essential/stage2-binutils.def')
-rw-r--r--strata/build-essential/stage2-binutils.def23
1 files changed, 23 insertions, 0 deletions
diff --git a/strata/build-essential/stage2-binutils.def b/strata/build-essential/stage2-binutils.def
new file mode 100644
index 00000000..56f5056d
--- /dev/null
+++ b/strata/build-essential/stage2-binutils.def
@@ -0,0 +1,23 @@
+name: stage2-binutils
+build-system: autotools
+
+configure-commands:
+- |
+ export STAGE2_SYSROOT="$(dirname $(pwd))"
+ export CPPFLAGS="--sysroot=$STAGE2_SYSROOT"
+ export CXX=false
+ export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT"
+ ./configure --prefix="$PREFIX" --disable-nls --disable-werror \
+ --build=$(sh config.guess) \
+ --host=$TARGET_STAGE1 \
+ --target=$TARGET_STAGE1
+
+build-commands:
+# Nested configure scripts require that we set CPPFLAGS here as well
+# (I don't think we should have to .. . at least in GCC, I think
+# TARGET_CPPFLAGS may be the answer)
+- |
+ export STAGE2_SYSROOT="$(dirname $(pwd))"
+ export CPPFLAGS="--sysroot=$STAGE2_SYSROOT"
+ export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT"
+ make