pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/elftoolchain elftoolchain: Strip Werror the lazy...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b9831d5cd729
branches:  trunk
changeset: 424162:b9831d5cd729
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Mar 06 11:33:34 2020 +0000

description:
elftoolchain: Strip Werror the lazy way.

we can't assume that newer compilers won't add new warnings, and indeed
this package fails with gcc7+ currently.

diffstat:

 devel/elftoolchain/Makefile |  17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diffs (36 lines):

diff -r dbbff59f8833 -r b9831d5cd729 devel/elftoolchain/Makefile
--- a/devel/elftoolchain/Makefile       Fri Mar 06 11:27:36 2020 +0000
+++ b/devel/elftoolchain/Makefile       Fri Mar 06 11:33:34 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2020/01/18 23:30:27 rillig Exp $
+# $NetBSD: Makefile,v 1.16 2020/03/06 11:33:34 nia Exp $
 
 DISTNAME=      elftoolchain-0.7.1
 CATEGORIES=    devel
@@ -21,19 +21,6 @@
 MAKE_ENV+=             ${BSD_MAKE_ENV}
 MAKE_FLAGS+=           MKPROFILE=yes
 MAKE_FLAGS+=           INCSDIR=${PREFIX}/include
-
-.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mgcc)
-CWARNFLAGS+=           -Wno-error=sign-conversion \
-                       -Wno-error=conversion \
-                       -Wno-error=unused-but-set-variable \
-                       -Wno-error=old-style-definition \
-                       -Wno-error=shift-negative-value
-.elif !empty(PKGSRC_COMPILER:Mclang)
-CWARNFLAGS+=           -Wno-error=missing-noreturn \
-                       -Wno-error=constant-logical-operand \
-                       -Wno-error=conversion -Wno-error=cast-qual
-.endif
 MAKE_FLAGS+=           CWARNFLAGS=${CWARNFLAGS:Q}
 
 INSTALLATION_DIRS=     bin include lib
@@ -41,4 +28,6 @@
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man3 ${PKGMANDIR}/cat3 ${PKGMANDIR}/html3
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man5 ${PKGMANDIR}/cat5 ${PKGMANDIR}/html5
 
+BUILDLINK_TRANSFORM+=  rm:-Werror
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index