Publisher's description
GCC is the GNU Compiler Collection. GCC, the GNU Compiler Collection includes front ends for C, Objective-C, C, Fortran, Java and Ada, as well as libraries for these ,...). languages (libstdc, libgcj Like most GNU software, GCC must be configured before it can be built. This document describes how to configure srcdir recommended for native and cross targets.We use to refer to the source directory top-level GCC, we use objdir to refer to the toplevel build / object directory.If you obtained the sources via CVS, srcdir should consult the directory gcc summit, where the maintainer can be found, not in its gcc subdirectory, otherwise the compilation will be fail.If srcdir or objdir is located on an NFS file system automatically, the built-in reservoir pwd command returns you temporary access roads. Using these can lead to various kinds building problems. To avoid this problem, set the environment variable PWDCMD an automounter-pwd know, for example, or `PAWDS AMQ-w 'at the configuration and build phases.First, we recommend strongly that GCC be built in a separate directory than the sources that do not reside in the source tree. Thus, we generally build GCC; building where srcdir == objdir should still work, but did not receive many tests; building where objdir is a subdirectory of srcdir is unsupported.If you have built gcc in the same directory to another target machine, type `make distclean 'to delete all files that could be valid. A file This deletes is Makefile, if `make distclean 'complains that Makefile does not exist or issue a message like" I do not know how to make distclean "it probably means that the directory is already clean. However, with the recommended method of building in a separate objdir, you simply use a different objdir for each target.Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts in May fail.Note the compiler and the bootstrap resulting GCC must be compatible link, otherwise the bootstrap will fail with linker errors on the file formats of incompatible object. Multilibed several objectives are covered by this requirement, see the host or target specific installation notes.To gcc configure:%% mkdir objdir cd objdir% srcdir / configure [options] [target] Target Specification • CCG's code to correctly determine the correct value for target for almost all indigenous systems. Therefore, we strongly recommend that you do not provide a configure target when configuring a native compiler. · Target must be specified as - target = target when configuring a cross compiler, examples of valid targets would be m68k-coff, elf-SH, etc. Specification · target, just instead of - target = target implies that the default host to target.