Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151510463
D50544.id157008.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
873 B
Referenced Files
None
Subscribers
None
D50544.id157008.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D50544: config.5: Document CONF_CFLAGS under 'makeoptions'
Attached
Detach File
Event Timeline
Log In to Comment