]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r232263:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Mar 2012 18:39:57 +0000 (18:39 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Mar 2012 18:39:57 +0000 (18:39 +0000)
commit23cb02a36e952608d4996e79f3623545df87340d
tree870939f3b05e401802c77af0ba09aeb7150bd6f5
parenta463e522f03df76716fde09d93f398ef67013815
MFC r232263:

Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang (disables -Wformat and friends)
- CLANG_NO_IAS (disables integrated assembler)
- CLANG_OPT_SMALL (adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp

git-svn-id: svn://svn.freebsd.org/base/stable/9@232930 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
26 files changed:
lib/libsm/Makefile
lib/libthread_db/Makefile
lib/libz/Makefile
libexec/mail.local/Makefile
libexec/smrsh/Makefile
sbin/fsdb/Makefile
share/mk/bsd.sys.mk
sys/boot/i386/boot0/Makefile
sys/boot/i386/boot2/Makefile
sys/boot/i386/btx/btx/Makefile
sys/boot/i386/btx/btxldr/Makefile
sys/boot/i386/gptboot/Makefile
sys/boot/i386/gptzfsboot/Makefile
sys/boot/i386/libi386/Makefile
sys/boot/i386/pxeldr/Makefile
sys/boot/i386/zfsboot/Makefile
sys/boot/pc98/btx/btx/Makefile
sys/boot/pc98/btx/btxldr/Makefile
sys/conf/Makefile.amd64
sys/conf/Makefile.i386
sys/conf/kern.pre.mk
sys/modules/bios/smapi/Makefile
sys/modules/linux/Makefile
usr.bin/netstat/Makefile
usr.bin/vacation/Makefile
usr.sbin/sendmail/Makefile