From 7115637964b41ded9dd20e2eb44292918df44b09 Mon Sep 17 00:00:00 2001 From: lukem Date: Wed, 1 Jul 2020 08:25:44 +0000 Subject: [PATCH] Fix addition of C++ .cc source to SRCS Fix assumption that all of the source files are .c, as some are .cc. Not tested, based on similar change to external/gpl3/gcc/usr.bin/cc1plus/Makefile --- external/gpl3/gcc.old/usr.bin/cc1plus/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile index 4cb1d240297a..5dc5c565b7a4 100644 --- a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile +++ b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.8 2019/09/26 08:03:59 mrg Exp $ +# $NetBSD: Makefile,v 1.9 2020/07/01 08:25:44 lukem Exp $ PROG= cc1plus -SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c +SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:S,constraint.o,constraint.cc,:S,logic.o,logic.cc,:Nlibcpp.a:.o=.c} +SRCS+= main.c ${PROG}-checksum.c # XXX NOMAN= 1