Date: Fri, 5 Dec 2014 14:24:38 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374030 - head/www/squid Message-ID: <201412051424.sB5EOc5w047774@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412051424.sB5EOc5w047774>