From 134cac73fd6b0041c0afd0cac909b929ddc4bd7e Mon Sep 17 00:00:00 2001 From: antoine Date: Fri, 5 Dec 2014 14:24:37 +0000 Subject: Allow building with clang 3.5 Those warnings should be fixed, but squelch them for now PR: ports/195665 --- www/squid/Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'www') diff --git a/www/squid/Makefile b/www/squid/Makefile index 30223a6fdace..e1dbf1149f43 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -29,7 +29,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING CONFLICTS_INSTALL= squid33-* -USES= cpe perl5 tar:xz shebangfix +USES= compiler cpe perl5 shebangfix tar:xz CPE_VENDOR= squid-cache SHEBANG_FILES= scripts/*.pl contrib/*.pl src/*.pl tools/*.pl \ helpers/ssl/cert_valid.pl @@ -185,11 +185,6 @@ CONFIGURE_ARGS= --with-default-user=squid \ .include -.if ${CC:T:Mclang*} || ${CXX:T:Mclang++*} \ - || ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024 -CXXFLAGS+= -Wno-unused-private-field -.endif - # Authentication methods and modules: basic_auth= DB MSNT MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam @@ -342,4 +337,13 @@ post-install: (cd ${WRKSRC} && ${INSTALL_DATA} ${MYDOCS} ${STAGEDIR}${DOCSDIR}) ${MKDIR} ${STAGEDIR}/var/squid/logs -.include +.include + +.if ${COMPILER_TYPE} == clang +CXXFLAGS+= -Wno-unused-private-field +.if ${COMPILER_VERSION} >= 35 +CXXFLAGS+= -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -Wno-dynamic-class-memaccess +.endif +.endif + +.include -- cgit