]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/doc/headerdirs.texi
Update copyright years.
[thirdparty/gcc.git] / gcc / doc / headerdirs.texi
CommitLineData
8d9254fc 1@c Copyright (C) 1988-2020 Free Software Foundation, Inc.
72170b22
JM
2@c This is part of the GCC manual.
3@c For copying conditions, see the file gcc.texi.
4
5@node Header Dirs
6@chapter Standard Header File Directories
7
8@code{GCC_INCLUDE_DIR} means the same thing for native and cross. It is
7d4f6041
NN
9where GCC stores its private include files, and also where GCC
10stores the fixed include files. A cross compiled GCC runs
72170b22
JM
11@code{fixincludes} on the header files in @file{$(tooldir)/include}.
12(If the cross compilation header files need to be fixed, they must be
7d4f6041
NN
13installed before GCC is built. If the cross compilation header files
14are already suitable for GCC, nothing special need be done).
72170b22
JM
15
16@code{GPLUSPLUS_INCLUDE_DIR} means the same thing for native and cross. It
05739753 17is where @command{g++} looks first for header files. The C++ library
72170b22
JM
18installs only target independent header files in that directory.
19
7d4f6041 20@code{LOCAL_INCLUDE_DIR} is used only by native compilers. GCC
72170b22
JM
21doesn't install anything there. It is normally
22@file{/usr/local/include}. This is where local additions to a packaged
23system should place header files.
24
7d4f6041 25@code{CROSS_INCLUDE_DIR} is used only by cross compilers. GCC
72170b22
JM
26doesn't install anything there.
27
28@code{TOOL_INCLUDE_DIR} is used for both native and cross compilers. It
7d4f6041 29is the place for other packages to install header files that GCC will
72170b22
JM
30use. For a cross-compiler, this is the equivalent of
31@file{/usr/include}. When you build a cross-compiler,
32@code{fixincludes} processes any header files in this directory.