Flags -Wno-unknown-warning-option -Wno-implicit-fallthrough are not

supported by base GCC, making build fail on GCC-based architectures.

This changes the location of the BAD_TESTS conditional.

PR:		233576
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2018-12-02 02:37:29 +00:00
parent b70a9562e8
commit 63a630fc27
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=486390

View File

@ -46,9 +46,14 @@ EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch
OPTIONS_DEFINE= DOCS
.if defined(BAD_TESTS)
.include <bsd.port.pre.mk>
post-patch:
.if defined(BAD_TESTS)
${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|}
.endif
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
${REINPLACE_CMD} -e '/-Wno-unknown-warning-option -Wno-implicit-fallthrough/d' ${WRKSRC}/configure.ac
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>