summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage1-binutils.morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-02 10:55:23 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-02 10:55:23 +0100
commit6d4a0ec6caa5a1f1f1a73a7a8bd061889cf06299 (patch)
tree6a0928e1aadf2527e16d2ead1a571bfa7da19c71 /strata/build-essential/stage1-binutils.morph
parentd107a96317a05ec3238ff7bce94cd6cbf12398bf (diff)
parente9dbfdc623101442370d51525e8cdbe3867eab02 (diff)
downloaddefinitions-6d4a0ec6caa5a1f1f1a73a7a8bd061889cf06299.tar.gz
Merge branch 'baserock/sam/build-essential-comments'
Reviewed-By: Pedro Alvarez <pedro.alvarez@codethink.co.uk> Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
Diffstat (limited to 'strata/build-essential/stage1-binutils.morph')
-rw-r--r--strata/build-essential/stage1-binutils.morph7
1 files changed, 7 insertions, 0 deletions
diff --git a/strata/build-essential/stage1-binutils.morph b/strata/build-essential/stage1-binutils.morph
index d3e73a87..b6670d5c 100644
--- a/strata/build-essential/stage1-binutils.morph
+++ b/strata/build-essential/stage1-binutils.morph
@@ -1,7 +1,14 @@
name: stage1-binutils
kind: chunk
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) \