From dc560803743de9b0365e539b3b4798251e3d4840 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Sun, 4 Aug 2013 15:57:40 +0000 Subject: 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" --- net/socat/Makefile | 6 ++---- 1 file 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 -- cgit v1.2.3