mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
config.5: Document CONF_CFLAGS under 'makeoptions'
This variable serves to tweak CFLAGS from the kernel configuration file, easing some custom kernel builds. It was introduced by bde@ in 1999.
This commit is contained in:
parent
dec24dbb29
commit
e89d737041
1 changed files with 16 additions and 0 deletions
|
|
@ -316,11 +316,27 @@ variable is specified,
|
|||
.Ar value
|
||||
is assumed to be the empty string.
|
||||
.Pp
|
||||
Note that, as the common makefiles override the
|
||||
.Va CFLAGS
|
||||
variable after having processed the configuration file,
|
||||
customizing
|
||||
.Va CFLAGS
|
||||
directly via
|
||||
.Ic makeoptions
|
||||
is not possible.
|
||||
However, custom compiler flags can be specified using the
|
||||
.Va CONF_CFLAGS
|
||||
variable.
|
||||
They are appended after most of the flags automatically going into
|
||||
.Va CFLAGS ,
|
||||
allowing to override those that are not essential to the build process.
|
||||
.Pp
|
||||
Example:
|
||||
.Bd -literal -offset indent -compact
|
||||
makeoptions MYMAKEOPTION="foo"
|
||||
makeoptions MYMAKEOPTION+="bar"
|
||||
makeoptions MYNULLMAKEOPTION
|
||||
makeoptions CONF_CFLAGS+="-DSOME_CONTROLLING_MACRO"
|
||||
.Ed
|
||||
.\" -------- MAXUSERS --------
|
||||
.Pp
|
||||
|
|
|
|||
Loading…
Reference in a new issue