sys.mk: Introduce WORLD_CFLAGS.
authorzrj <rimvydas.jasinskas@gmail.com>
Mon, 8 Aug 2016 15:03:26 +0000 (18:03 +0300)
committerzrj <zrj@dragonflybsd.org>
Fri, 12 Aug 2016 09:26:30 +0000 (12:26 +0300)
commit5d6d7712c81dc89e0285eb2cbce7abb81cd46dd4
treed4c79e4c437c2ab2f191ae722479dfe54f6b1496
parentb3c6ec2b467a9324ebfcbb0080d4b34d7b888e22
sys.mk: Introduce WORLD_CFLAGS.

Main purpose of this flag is to provide user a way to safely add extra
compiler flags to the build system without accidentally removing things
like -pipe or -Ox flags. Also it will help to ensure that none of user
set world flags will propagate to dports compilation to cause ruckus.
CFLAGS is still available as before provided it will be handled with care.

While there, adjust make.conf(5) to promote WORLD_CFLAGS usage instead of
manipulating CFLAGS directly. Also fix typo, ld.gold is default.
etc/defaults/make.conf
share/man/man5/make.conf.5
share/mk/sys.mk