Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): allow to build using GCC 9 during deve...
details: https://anonhg.NetBSD.org/src/rev/26a98d5a6447
branches: trunk
changeset: 937102:26a98d5a6447
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Aug 09 05:51:04 2020 +0000
description:
make(1): allow to build using GCC 9 during development
diffstat:
usr.bin/make/Makefile | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r febf96f2eaae -r 26a98d5a6447 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile Sun Aug 09 02:53:21 2020 +0000
+++ b/usr.bin/make/Makefile Sun Aug 09 05:51:04 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.83 2020/08/08 13:50:23 rillig Exp $
+# $NetBSD: Makefile,v 1.84 2020/08/09 05:51:04 rillig Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -56,6 +56,18 @@
LDADD+= -fsanitize=undefined
.endif
+# Whether to compile with GCC 9 from pkgsrc, during development.
+USE_GCC9?= no
+.if ${USE_GCC9} == "yes"
+# CC is set further down in this file
+COPTS+= -Wno-attributes # for abs and labs
+COPTS.arch.c+= -Wno-error=format-truncation
+COPTS.dir.c+= -Wno-error=format-truncation
+COPTS.main.c+= -Wno-error=format-truncation
+COPTS.meta.c+= -Wno-error=format-truncation
+COPTS.parse.c+= -Wno-error=format-truncation
+.endif
+
USE_META?= yes
.if ${USE_META:tl} != "no"
@@ -96,6 +108,10 @@
COPTS.parse.c+= -Wno-format-nonliteral
COPTS.var.c+= -Wno-format-nonliteral
+.if ${USE_GCC9} == "yes"
+CC= /usr/pkg/gcc9/bin/gcc
+.endif
+
.if defined(TOOLDIR)
# This is a native NetBSD build, use libutil rather than the local emalloc etc.
CPPFLAGS+= -DUSE_EMALLOC
Home |
Main Index |
Thread Index |
Old Index