Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2018 22:52:17 +0000 (UTC)
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482942 - head/net-mgmt/ipv6calc
Message-ID:  <201810242252.w9OMqHDl064350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dbaio
Date: Wed Oct 24 22:52:17 2018
New Revision: 482942
URL: https://svnweb.freebsd.org/changeset/ports/482942

Log:
  net-mgmt/ipv6calc: Fix build with mips, mips64 and powerpc64
  
  Base GCC doesn't support -Wno-unknown-warning-option.
  
  PR:		232515	[1]
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl> [1]
  Sponsored by:	IntegriCloud [1]

Modified:
  head/net-mgmt/ipv6calc/Makefile

Modified: head/net-mgmt/ipv6calc/Makefile
==============================================================================
--- head/net-mgmt/ipv6calc/Makefile	Wed Oct 24 22:17:03 2018	(r482941)
+++ head/net-mgmt/ipv6calc/Makefile	Wed Oct 24 22:52:17 2018	(r482942)
@@ -12,17 +12,20 @@ COMMENT=	Convert, change, and calculate with IPv6 addr
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_mips=		fails to build: libipv6addr.c: addr_test_method may be used uninitialized in this function
-BROKEN_mips64=		fails to build: libipv6addr.c: addr_test_method may be used uninitialized in this function
-BROKEN_powerpc64=	fails to build: libipv6addr.c: addr_test_method may be used uninitialized in this function
-
 USES=		gmake perl5 shebangfix ssl
 GNU_CONFIGURE=	yes
-CFLAGS+=	-Wno-unknown-warning-option
 
 SHEBANG_FILES=	tools/*.pl tools/*.sh.in
 
+.include <bsd.port.pre.mk>
+
+.if !(${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64)
+CFLAGS+=	-Wno-unknown-warning-option
+.else
+CFLAGS+=	-Wno-uninitialized
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810242252.w9OMqHDl064350>