aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-12-05 22:24:37 +0800
committerantoine <antoine@FreeBSD.org>2014-12-05 22:24:37 +0800
commit134cac73fd6b0041c0afd0cac909b929ddc4bd7e (patch)
treede50c865e21db0ef3617461dc7baad13128a8a58
parent68527ef5500ca7200e7aaaf38ae3a86f73604bcf (diff)
downloadfreebsd-ports-gnome-134cac73fd6b0041c0afd0cac909b929ddc4bd7e.tar.gz
freebsd-ports-gnome-134cac73fd6b0041c0afd0cac909b929ddc4bd7e.tar.zst
freebsd-ports-gnome-134cac73fd6b0041c0afd0cac909b929ddc4bd7e.zip
Allow building with clang 3.5
Those warnings should be fixed, but squelch them for now PR: ports/195665
-rw-r--r--www/squid/Makefile18
1 files changed, 11 insertions, 7 deletions
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 <bsd.port.options.mk>
-.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 <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>