diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-08-04 15:57:40 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-08-04 15:57:40 +0000 |
commit | dc560803743de9b0365e539b3b4798251e3d4840 (patch) | |
tree | 8c74ca66e7869fb61d35495d6f566002c608ade2 /net/socat | |
parent | 0188d731801b12805eca8dff7b0af3710de09269 (diff) |
Change the clang detector to use a pattern match instead of a conditional
define and always test. This fixes build on 9-STABLE and saves some shell
commands.
PR: 181007
Submitted by: "r4721@tormail.org" <r4721@tormail.org>
Notes
Notes:
svn path=/head/; revision=324242
Diffstat (limited to 'net/socat')
-rw-r--r-- | net/socat/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/socat/Makefile b/net/socat/Makefile index 81cc7f7f9d51..307017f3ae7e 100644 --- a/net/socat/Makefile +++ b/net/socat/Makefile @@ -33,11 +33,9 @@ CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib .endif -.if(${OSVERSION} >= 1000024) -CCISCLANG!= ${CC} --version | ${HEAD} -1 | ${GREP} 'clang' -.endif +CCISCLANG!= ${CC} --version -.if ${CC} == clang || !empty(CCISCLANG) +.if !empty(CCISCLANG:M*clang*) CFLAGS+= -Wno-unused-comparison .endif |