Date: Sat, 5 Jul 2014 23:55:32 +0000 (UTC) From: Adam Weinberger <adamw@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r360850 - in head/net-mgmt/sendip: . files Message-ID: <201407052355.s65NtWTl051862@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adamw Date: Sat Jul 5 23:55:31 2014 New Revision: 360850 URL: http://svnweb.freebsd.org/changeset/ports/360850 QAT: https://qat.redports.org/buildarchive/r360850/ Log: Fix build with gcc by adding some compiler flags. PR: ports/191426 Submitted by: Marco Steinbach (maintainer) Modified: head/net-mgmt/sendip/Makefile head/net-mgmt/sendip/files/patch-Makefile Modified: head/net-mgmt/sendip/Makefile ============================================================================== --- head/net-mgmt/sendip/Makefile Sat Jul 5 23:47:48 2014 (r360849) +++ head/net-mgmt/sendip/Makefile Sat Jul 5 23:55:31 2014 (r360850) @@ -3,7 +3,7 @@ PORTNAME= sendip PORTVERSION= 2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt ipv6 MASTER_SITES= http://www.earth.li/projectpurple/files/ @@ -14,15 +14,21 @@ LICENSE= GPLv2 BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man -USES= gmake perl5 +USES= gmake perl5 compiler USE_LDCONFIG= yes +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang +CFLAGS+= -Wno-empty-body -Wno-constant-conversion +.endif + post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip .for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \ bgp.so - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib} + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib} .endfor -.include <bsd.port.mk> +.include <bsd.port.post.mk> Modified: head/net-mgmt/sendip/files/patch-Makefile ============================================================================== --- head/net-mgmt/sendip/files/patch-Makefile Sat Jul 5 23:47:48 2014 (r360849) +++ head/net-mgmt/sendip/files/patch-Makefile Sat Jul 5 23:55:31 2014 (r360850) @@ -19,7 +19,7 @@ -CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ - -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ - -DSENDIP_LIBS=\"$(LIBDIR)\" -+CFLAGS+= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wno-empty-body -Wno-constant-conversion \ ++CFLAGS+= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ + -Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align \ + -DSENDIP_LIBS=\"${LIBDIR}\" #-Wcast-align causes problems on solaris, but not serious ones
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407052355.s65NtWTl051862>