Page MenuHomeFreeBSD

D50544.id157008.diff
No OneTemporary

D50544.id157008.diff

diff --git a/usr.sbin/config/config.5 b/usr.sbin/config/config.5
--- a/usr.sbin/config/config.5
+++ b/usr.sbin/config/config.5
@@ -316,11 +316,28 @@
.Ar value
is assumed to be the empty string.
.Pp
+Note that, as the common makefiles overwrite the
+.Va CFLAGS
+variable after having processed the configuration file,
+customizing
+.Va CFLAGS
+directly via
+.Ic makeoptions
+is not possible.
+Nonetheless, custom compiler flags can be specified using the
+.Va CONF_CFLAGS
+variable instead.
+Its content is appended to
+.Va CFLAGS
+after the common makefiles have set the latter, allowing to override their
+compilation flags.
+.Pp
Example:
.Bd -literal -offset indent -compact
makeoptions MYMAKEOPTION="foo"
makeoptions MYMAKEOPTION+="bar"
makeoptions MYNULLMAKEOPTION
+makeoptions CONF_CFLAGS+="-DSOME_CONTROLLING_MACRO"
.Ed
.\" -------- MAXUSERS --------
.Pp

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 9, 10:29 PM (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31174411
Default Alt Text
D50544.id157008.diff (873 B)

Event Timeline