svn commit: r500492 - head/net/ndproxy

Piotr Kubaj pkubaj at FreeBSD.org
Tue Apr 30 13:53:24 UTC 2019


Author: pkubaj
Date: Tue Apr 30 13:53:23 2019
New Revision: 500492
URL: https://svnweb.freebsd.org/changeset/ports/500492

Log:
  net/ndproxy: add -Wno-error=strict-prototypes to CFLAGS when using GCC
  
  This is needed to fix build:
  ndproxy.c:51: function declaration isn't a prototype
  
  PR:		237296
  Approved by:	fbsd.bugzilla at fenyo.net (maintainer), mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D20013

Modified:
  head/net/ndproxy/Makefile

Modified: head/net/ndproxy/Makefile
==============================================================================
--- head/net/ndproxy/Makefile	Tue Apr 30 13:47:06 2019	(r500491)
+++ head/net/ndproxy/Makefile	Tue Apr 30 13:53:23 2019	(r500492)
@@ -11,7 +11,7 @@ COMMENT=	Implementation of IPv6 Neighbor Discovery pro
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		kmod
+USES=		compiler kmod
 
 SUB_FILES=	pkg-message
 
@@ -20,7 +20,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	AlexandreFenyo
 
 # build for a kernel with 'options VIMAGE'
-CFLAGS+=	-DVIMAGE
+CFLAGS+=	-DVIMAGE ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
+CFLAGS_gcc=	-Wno-error=strict-prototypes
 
 PLIST_FILES=	${KMODDIR}/${PORTNAME}.ko man/man4/${PORTNAME}.4.gz
 


More information about the svn-ports-head mailing list