svn commit: r374030 - head/www/squid
Antoine Brodin
antoine at FreeBSD.org
Fri Dec 5 14:24:38 UTC 2014
Author: antoine
Date: Fri Dec 5 14:24:37 2014
New Revision: 374030
URL: https://svnweb.freebsd.org/changeset/ports/374030
QAT: https://qat.redports.org/buildarchive/r374030/
Log:
Allow building with clang 3.5
Those warnings should be fixed, but squelch them for now
PR: ports/195665
Modified:
head/www/squid/Makefile
Modified: head/www/squid/Makefile
==============================================================================
--- head/www/squid/Makefile Fri Dec 5 14:05:33 2014 (r374029)
+++ head/www/squid/Makefile Fri Dec 5 14:24:37 2014 (r374030)
@@ -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=squi
.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>
More information about the svn-ports-head
mailing list