freebsd-src/share
Ruslan Ermilov ea5c0da93b Obviate the need to set the COMPILER_PATH and LIBRARY_PATH in Makefile.inc1
to pick up the correct cross-tools (the compiler executables and binutils)
and special linker files (crt*.o).  This is now controlled by a single knob,
TOOLS_PREFIX, when building cross-tools.

Fixed regression in Makefile.inc1,v 1.203 (-nostdinc).  This clobbered target
architecture's CFLAGS with building host's CPUTYPE setting in /etc/make.conf,
and had a nice but nasty side effect of exposing some (normally hidden) bugs
in system headers.

(Attempt to move the "-nostdinc -I..." part of CFLAGS into the new CINCLUDES
(modeled after a similar CXXINCLUDES) eventually failed because hard-coding
${WORLDTMP}/usr/include to be the first in the include list does not always
work, e.g. lib/libbind.)

Compensate the -nostdinc removal by making cpp(1) built in the cross-tools
stage to not look for <> header files in the building host's /usr/include
(already committed as gnu/usr.bin/cc/cc_tools/freebsd-native.h, revisions
1.10-1.12, STANDARD_INCLUDE_DIR).

: $ /usr/obj/usr/src/i386/usr/bin/cpp -v /dev/null
:
: Before:
:
: #include <...> search starts here:
:  /usr/obj/usr/src/i386/usr/include
:  /usr/include
: End of search list.
:
: After:
:
: #include <...> search starts here:
:  /usr/obj/usr/src/i386/usr/include
:  /usr/obj/usr/src/i386/usr/include

(Disabling the use of GCC_INCLUDE_DIR in the FREEBSD_NATIVE case would fix
the duplicate above.)

Get rid of the (now unneeded) -I${DESTDIR}/usr/include magic in bsd.prog.mk
and bsd.lib.mk.  Finish the removal of LDDESTDIR in bsd.lib.mk,v 1.55 -- we
no longer have users of it.

The required changes to gcc were already committed as contrib/gcc.295/gcc.c,
revisions 1.23 and 1.24.

Basically, this allows for the changes above plus makes gcc(1) persistent
about path configuration, whether it's configured as a native or a cross
compiler:

: $ /usr/obj/usr/src/i386/usr/bin/cc -print-search-dirs
: install: /usr/obj/usr/src/i386/usr/libexec/(null)
: programs: /usr/obj/usr/src/i386/usr/libexec/elf/:/usr/obj/usr/src/i386/usr/libexec/
: libraries: /usr/obj/usr/src/i386/usr/lib/
:
: $ /usr/obj/alpha/usr/src/i386/usr/bin/cc -print-search-dirs
: install: /usr/obj/alpha/usr/src/i386/usr/libexec/(null)
: programs: /usr/obj/alpha/usr/src/i386/usr/libexec/elf/:/usr/obj/alpha/usr/src/i386/usr/libexec/
: libraries: /usr/obj/alpha/usr/src/i386/usr/lib/

Reviewed by:	bde, obrien
2002-02-21 10:23:41 +00:00
..
colldef Add ro_RO 2002-01-08 15:20:13 +00:00
dict FILES support for bsd.prog.mk. See bsd.README for details. 2001-12-17 13:59:35 +00:00
doc Fix typo. 2002-02-18 16:22:23 +00:00
examples Document new build knob, SENDMAIL_SET_USER_ID, which installs sendmail as a 2002-02-17 22:10:06 +00:00
info
isdn FILES support for bsd.prog.mk. See bsd.README for details. 2001-12-17 13:59:35 +00:00
man Document NGM_PPPOE_ACNAME. 2002-02-20 15:55:02 +00:00
me FILES support for bsd.prog.mk. See bsd.README for details. 2001-12-17 13:59:35 +00:00
misc Regen. 2002-02-08 11:04:50 +00:00
mk Obviate the need to set the COMPILER_PATH and LIBRARY_PATH in Makefile.inc1 2002-02-21 10:23:41 +00:00
mklocale Add ro_RO 2002-01-08 15:20:13 +00:00
monetdef Switch national currencies to Euro 2002-02-19 18:38:04 +00:00
msgdef Unbreak nl_BE locales 2002-02-12 18:40:57 +00:00
numericdef Unbreak nl_BE locales 2002-02-12 18:40:57 +00:00
sendmail Unbreak installworld. Revision 1.41 of src/usr.bin/xinstall/xinstall.c 2001-05-29 17:55:49 +00:00
skel Automatically exec bash at startup if it exists^U Turn on the display of 2001-06-25 20:40:02 +00:00
syscons The idea of mapping non-existen characters to space (0x20) was nice alone, 2002-01-21 21:52:02 +00:00
tabset FILES support for bsd.prog.mk. See bsd.README for details. 2001-12-17 13:59:35 +00:00
termcap We don't use two-letters terminal names, so strip them out from vt520* entries 2002-01-18 17:41:54 +00:00
timedef Add ro_RO 2002-01-08 15:20:13 +00:00
zoneinfo Except for a comment in zone.tab (about the location of the ISO 3166 table), 2001-11-16 17:23:23 +00:00
Makefile Add NO_I4B to avoid building/installing isdn4bsd package. 2001-05-23 13:32:32 +00:00
Makefile.inc