summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-08-16 01:09:03 +0000
committerRoland McGrath <roland@gnu.org>1994-08-16 01:09:03 +0000
commite5af87484a7d8256f4dce63083022fa740d9934b (patch)
treebd6fd60d2b5d284e6d1b4e3af07a932bf935f4a3 /manual
parent2890e41c0776a9d4ba93e760afa0088bd86ba830 (diff)
Added a paragraph about cross-compiling.
Diffstat (limited to 'manual')
-rw-r--r--manual/maint.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/manual/maint.texi b/manual/maint.texi
index 7123384280..36df9aba3b 100644
--- a/manual/maint.texi
+++ b/manual/maint.texi
@@ -155,6 +155,17 @@ Then for each parameter that you want to change, copy the definition
from @file{Makeconfig} to your new @file{configparms} file, and change
the value as appropriate for your system.
+It is easy to configure the GNU C library for cross-compilation by
+setting a few variables in @file{configparms}. Set @code{CC} to the
+cross-compiler for the target you configured the library for; it is
+important to use this same @code{CC} value when running
+@code{configure}, like this: @samp{CC=@var{target}-gcc configure
+@var{target}}. Set @code{BUILD_CC} to the compiler to use for for
+programs run on the build system as part of compiling the library. You
+may need to set @code{AR} and @code{RANLIB} to cross-compiling versions
+of @code{ar} and @code{ranlib} if the native tools are not configured to
+work with object files for the target you configured for.
+
Some of the machine-dependent code for some machines uses extensions in
the GNU C compiler, so you may need to compile the library with GCC.
(In fact, all of the existing complete ports require GCC.)