aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2025-05-27 07:41:19 +0000
committerOlivier Certner <olce@FreeBSD.org>2025-05-27 07:59:05 +0000
commite89d737041d15d8b3763c2829ee97dc8fcc69cbc (patch)
treea1e5ce60a59fe65876b0271e47a82147fbf4b007 /usr.sbin/config
parentdec24dbb29e4cfb28df8323c2368d1c8504239a9 (diff)
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/config.516
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.sbin/config/config.5 b/usr.sbin/config/config.5
index 93d65819d1d8..246e20c081ae 100644
--- a/usr.sbin/config/config.5
+++ b/usr.sbin/config/config.5
@@ -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