]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create CFLAGS_EARLY.file for boot loader.
authorWarner Losh <imp@FreeBSD.org>
Fri, 28 Aug 2020 17:36:14 +0000 (17:36 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 05:24:27 +0000 (00:24 -0500)
commit19a32560ab25624d9a31c674d07edb2e6b8f8992
tree30825dba667762f8c5e28b42b6c9ac461ddc0913
parent087f336455ec4aeacc19415cb779fc7b04fa36fc
Create CFLAGS_EARLY.file for boot loader.

Some external code requires a specific set of include paths to work
properly since it emulates the typical environment the code is used
in. Enable this by creating a CFLAGS_EARLY.file variable that can be
used to build this stack. Otherwise the include stack we build for
stand programs may get in the way. Code that uses this feature has to
tolerate the normal stack of inclues being last on the list (and
presumably unused), though.

Generally, it it should only be used for the specific include
directories. Defines and that sort of thing should be done in the
normal CFLAGS variable. There is a global CFLAGS_EARY hook as well for
everything in a Makefile.

(cherry picked from commit f9553770c03e82abcae07397025797ef346fbdab)
stand/defs.mk