[PATCH 1 of 2] docs: --target versus --host
Trevor Woerner
twoerner@gmail.com
Wed Nov 16 22:46:00 GMT 2011
# HG changeset patch
# User Trevor Woerner <twoerner@gmail.com>
# Date 1321477602 18000
# Node ID c1c4d9174fbfd7d76e0e520dc6657cf239a7d718
# Parent c4452a1a18fb5c57b991eb75f7ff480d33e91704
docs: --target versus --host
In the very beginnings, eons ago, autotools also got confused by this
whole build vs. host vs. target, and got it wrong. Now they fixed it,
but they want to keep backward compatibility, so the --target is still
recongised, although ./configure will complain if you do so. It is
better to use --host.
Signed-off-by: "Trevor Woerner" <twoerner@gmail.com>
diff -r c4452a1a18fb -r c1c4d9174fbf docs/5 - Using the toolchain.txt
--- a/docs/5 - Using the toolchain.txt Tue Nov 15 19:11:57 2011 +0100
+++ b/docs/5 - Using the toolchain.txt Wed Nov 16 16:06:42 2011 -0500
@@ -11,13 +11,14 @@
your PATH, such as:
export PATH="${PATH}:/your/toolchain/path/bin"
-and then using the target tuple to tell the build systems to use your
-toolchain:
- ./configure --target=your-target-tuple
+and then using the '--host' tuple to tell the build systems to use your
+toolchain (if the software package uses the autotools system you should
+also pass --build, for completeness):
+ ./configure --host=your-host-tuple --build=your-build-tuple
or
- make CC=your-target-tuple-gcc
+ make CC=your-host-tuple-gcc
or
- make CROSS_COMPILE=your-target-tuple-
+ make CROSS_COMPILE=your-host-tuple-
and so on...
It is strongly advised not to use the toolchain sysroot directory as an
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list