summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-12-29 07:03:46 +0000
committerdholland <dholland@pkgsrc.org>2014-12-29 07:03:46 +0000
commit4c4411d452b8839959f03a8c34cfac96f3b1fecb (patch)
tree1bc258852722fe36d5b0c903ebda679eed8e7d04 /net
parentd1e40e115c8752dc416ed263a8e16400480e18b9 (diff)
downloadpkgsrc-4c4411d452b8839959f03a8c34cfac96f3b1fecb.tar.gz
Extend removing -Werror to all compilers, not just clang. Fixes build
with gcc48 on amd64; also closes PR 36974 relating to -Wcast-align on arm and other non-x86 platforms. Whether the offending code *works* on non-x86 platforms isn't clear, but it might and someone will eventually have to try it out. If it doesn't, please try to get upstream to fix it as the code probably needs fundamental restructuring.
Diffstat (limited to 'net')
-rw-r--r--net/xorp/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/xorp/Makefile b/net/xorp/Makefile
index c4c13229340..a65944ebf0d 100644
--- a/net/xorp/Makefile
+++ b/net/xorp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2014/02/12 23:18:27 tron Exp $
+# $NetBSD: Makefile,v 1.30 2014/12/29 07:03:46 dholland Exp $
#
DISTNAME= xorp-1.6
@@ -29,11 +29,9 @@ pre-build:
cd ${WRKSRC}/policy/test && ${MAKE} lex
cd ${WRKSRC}/rtrmgr && ${MAKE} lex
-.include "../../mk/compiler.mk"
-
-.if !empty(PKGSRC_COMPILER:Mclang)
+# This used to be set for clang only, but it's needed for gcc as well
+# these days. See PR 36974; also there are other warnings with gcc48.
BUILDLINK_TRANSFORM+= rm:-Werror
-.endif
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"