headerdirs.texi 1.5 KB

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