Date: Sun, 4 Aug 2013 15:57:41 +0000 (UTC) From: Emanuel Haupt <ehaupt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324242 - head/net/socat Message-ID: <201308041557.r74FvfUE004395@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ehaupt Date: Sun Aug 4 15:57:40 2013 New Revision: 324242 URL: http://svnweb.freebsd.org/changeset/ports/324242 Log: 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> Modified: head/net/socat/Makefile Modified: head/net/socat/Makefile ============================================================================== --- head/net/socat/Makefile Sun Aug 4 15:43:18 2013 (r324241) +++ head/net/socat/Makefile Sun Aug 4 15:57:40 2013 (r324242) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308041557.r74FvfUE004395>