diff options
author | dim <dim@FreeBSD.org> | 2013-12-22 17:51:33 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-22 17:51:33 +0000 |
commit | b8e518528f02b85edc31c8aaab7dce50b2c0637a (patch) | |
tree | be47307173b9efd3ad49c05d4784734effcc6646 /usr.bin/mkcsmapper | |
parent | 47ed2e723641d37c7d409d6ce11d4786823dc8e8 (diff) | |
download | FreeBSD-src-b8e518528f02b85edc31c8aaab7dce50b2c0637a.zip FreeBSD-src-b8e518528f02b85edc31c8aaab7dce50b2c0637a.tar.gz |
To avoid having to explicitly test COMPILER_TYPE for setting
clang-specific or gcc-specific flags, introduce the following new
variables for use in Makefiles:
CFLAGS.clang
CFLAGS.gcc
CXXFLAGS.clang
CXXFLAGS.gcc
In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for
the right compiler.
MFC after: 1 week
Diffstat (limited to 'usr.bin/mkcsmapper')
-rw-r--r-- | usr.bin/mkcsmapper/Makefile.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mkcsmapper/Makefile.inc b/usr.bin/mkcsmapper/Makefile.inc index e0acc9b..5a4cc6f 100644 --- a/usr.bin/mkcsmapper/Makefile.inc +++ b/usr.bin/mkcsmapper/Makefile.inc @@ -6,6 +6,4 @@ SRCS+= lex.l yacc.y CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../mkcsmapper \ -I${.CURDIR}/../../lib/libc/iconv \ -I${.CURDIR}/../../lib/libiconv_modules/mapper_std -.if ${COMPILER_TYPE} == "gcc" -CFLAGS+= --param max-inline-insns-single=64 -.endif +CFLAGS.gcc+= --param max-inline-insns-single=64 |