This should hopefully fix current issues with bootstrap buildworlds from
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 30 Jan 2004 02:35:02 +0000 (02:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 30 Jan 2004 02:35:02 +0000 (02:35 +0000)
commit5228fe46aacc0129af2aeeafcae2f16c98b093d6
tree5d93ff7639ead203653bb061f697209e0d7f9b8f
parent800169616d8b9a5a86ddc403ffd5892583336b80
This should hopefully fix current issues with bootstrap buildworlds from
4.x and older versions of DFly, and with user-specified CCVER and CPUTYPE
environment variables.

Explicitly override CCVER in buildworld in a backwards compatible fashion
when building gcc2's and gcc3's startup libraries.  Also override CCVER
in gnu/lib/gcc{2,3}/Makefile when bootstrapping from older DFly or FBsd
systems which do not implement the '.makeenv' make directive.

In bsd.init.mk detect when CCVER is changed by a Makefile or Makefile.inc and
rerun bsd.cpu.mk to update the _CPUCFLAGS set, which is assigned in bsd.cpu.mk.
We relay on the fact that ${} variables are not resolved until rules accessing
them are actually run.

Clean up objformat (no operational changes).
Makefile.inc1
gnu/lib/gcc2/Makefile
gnu/lib/gcc2/Makefile.inc
gnu/lib/gcc3/Makefile
gnu/lib/gcc3/Makefile.inc
share/mk/bsd.cpu.gcc2.mk
share/mk/bsd.cpu.gcc3.mk
share/mk/bsd.cpu.mk
share/mk/bsd.init.mk
share/mk/bsd.own.mk
usr.bin/objformat/objformat.c