Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc49 lang/gcc49: build even with -Werror=char-su...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7a1b6d7bd28
branches:  trunk
changeset: 431960:e7a1b6d7bd28
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun May 17 20:08:38 2020 +0000

description:
lang/gcc49: build even with -Werror=char-subscripts

diffstat:

 lang/gcc49/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 596be79d8596 -r e7a1b6d7bd28 lang/gcc49/Makefile
--- a/lang/gcc49/Makefile       Sun May 17 20:07:00 2020 +0000
+++ b/lang/gcc49/Makefile       Sun May 17 20:08:38 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2020/05/09 17:59:09 rillig Exp $
+# $NetBSD: Makefile,v 1.33 2020/05/17 20:08:38 rillig Exp $
 
 GCC_PKGNAME=   gcc49
 .include       "version.mk"
@@ -172,6 +172,12 @@
 CONFIGURE_ARGS+=       --without-gnu-ld --with-ld=/usr/ccs/bin/ld
 .endif
 
+# libgfortran/runtime/environ.c:123:5: error: array subscript has type 'char'
+# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177
+# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95178
+# Not worth fixing though since nobody cared between 2014 and 2020.
+BUILDLINK_TRANSFORM+=  rm:-Werror=char-subscripts
+
 pre-configure:
        ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
 



Home | Main Index | Thread Index | Old Index