summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage1-binutils.def
diff options
context:
space:
mode:
Diffstat (limited to 'strata/build-essential/stage1-binutils.def')
-rw-r--r--strata/build-essential/stage1-binutils.def16
1 files changed, 16 insertions, 0 deletions
diff --git a/strata/build-essential/stage1-binutils.def b/strata/build-essential/stage1-binutils.def
new file mode 100644
index 00000000..55417a9a
--- /dev/null
+++ b/strata/build-essential/stage1-binutils.def
@@ -0,0 +1,16 @@
+name: stage1-binutils
+build-system: autotools
+
+configure-commands:
+# We set the sysroot location dynamically at runtime by passing -B to GCC,
+# so we configure with 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.
+
+- |
+ ./configure --prefix="$PREFIX" --disable-nls --disable-werror \
+ --build=$(sh config.guess) \
+ --host=$(sh config.guess) \
+ --target=$TARGET_STAGE1 \
+ --with-sysroot="/" --with-lib-path="=$PREFIX/lib"