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.
This commit is contained in:
dholland 2014-12-29 07:03:46 +00:00
parent d4ca01192f
commit bc4f696edc

View file

@ -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"