]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix GCC 4.2.1 to honor --sysroot for includes.
authorjhb <jhb@FreeBSD.org>
Wed, 27 Jun 2018 18:14:33 +0000 (18:14 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 27 Jun 2018 18:14:33 +0000 (18:14 +0000)
commit18ddcb43ebef97d31864845d7191aa0bec2b1f6b
tree33dae3bd66fb50c1bf22a597143c05762a3b63d8
parent65c3d0c931f8cc6e09c41964be52ae4cdd3811b9
Fix GCC 4.2.1 to honor --sysroot for includes.

- Change the C++ directory entries to honor --sysroot if it is set.
- Don't define CROSS_INCLUDE_DIR for the cross compiler.  Instead, set
  TARGET_SYSTEM_ROOT to point to WORLDTMP and always define
  STANDARD_INCLUDE_DIR.
- Change STANDARD_INCLUDE_DIR and the C++ include directories to just
  start with "/usr" always.  The compiler will prepend the sysroot when
  doing cross-builds.  GCC_INCLUDE_DIR (which contains headers that ship
  with the compiler such as intrinsincs rather than OS-supplied headers)
  remains hardcoded to look in TOOLS_PREFIX.

Reviewed by: bdrewery (older version)
Sponsored by: DARPA / AFRL
Differential Revision: https://reviews.freebsd.org/D15127
contrib/gcc/cppdefault.c
gnu/usr.bin/cc/Makefile.inc
gnu/usr.bin/cc/cc_tools/freebsd-native.h