aboutsummaryrefslogtreecommitdiff
path: root/lib/atf/libatf-c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-22 17:51:33 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-22 17:51:33 +0000
commitb294993d630a50780b2513770315b85c11019f9e (patch)
treebe47307173b9efd3ad49c05d4784734effcc6646 /lib/atf/libatf-c
parente9120a256075543376496fbd75949eed1f13a887 (diff)
downloadsrc-b294993d630a50780b2513770315b85c11019f9e.tar.gz
src-b294993d630a50780b2513770315b85c11019f9e.zip
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
Notes
Notes: svn path=/head/; revision=259730
Diffstat (limited to 'lib/atf/libatf-c')
-rw-r--r--lib/atf/libatf-c/tests/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/atf/libatf-c/tests/Makefile b/lib/atf/libatf-c/tests/Makefile
index 0d13d9ce50dc..a5c2836f677c 100644
--- a/lib/atf/libatf-c/tests/Makefile
+++ b/lib/atf/libatf-c/tests/Makefile
@@ -10,12 +10,10 @@ ATF= ${.CURDIR:H:H:H:H}/contrib/atf
CFLAGS+= -I${ATF}
-.if ${COMPILER_TYPE} == "clang"
# macros_test.c contains a double 'const const' which will be gone with
# the import of atf-0.18.
# TODO(jmmv): Remove this workaround once we do that update.
-CFLAGS+= -Wno-duplicate-decl-specifier
-.endif
+CFLAGS.clang+= -Wno-duplicate-decl-specifier
FILESDIR= ${TESTSDIR}
FILES= macros_h_test.c