| Red Hat Documentation |
|
Options for directory search The following options specify directories to search for header files, for libraries and for parts of the compiler.
‘-I-’ does not inhibit the use of the standard system directories for header files. Thus, ‘-I-’ and ‘-nostdinc’ are independent.
The compiler driver program runs one or more of the subprograms cpp, cc1, as and ld. It tries prefix as a prefix for each program it tries to run, both with and without ‘machine/version/’ (see Specifying target machine and compiler version). For each subprogram to be run, the compiler driver first tries, if any, the ‘-B’ prefix. If that name is not found, or if ‘-B’ was not specified, the driver tries two standard prefixes, which are /usr/lib/gcc/ and /usr/local/lib/gcc-lib/. If neither of those results in a filename that is found, the unmodified program name is searched for using the directories specified in your PATH environment variable. ‘-B’ prefixes that effectively specify directory names also apply to libraries in the linker, because the compiler translates these options into ‘-L’ options for the linker. They also apply to includes files in the preprocessor, because the compiler translates these options into -isystem options for the pre-processor. In this case, the compiler appends include to the prefix. The run-time support file, libgcc.a, can also be searched for using the ‘-B’ prefix, if needed. If it is not found there, the two standard prefixes discussedin the previous discussion are tried, and that is all. The file is left out of the link if it is not found by those means. Another way to specify a prefix much like the ‘-B’ prefix, is to use the environment variable, GCC_EXEC_PREFIX. See Environmental variables affecting GNU CC.
|
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |