From 64ee02ff8f002e71350e4870f39d7098a12ccb2f Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 2 Jul 2011 14:06:42 +0000 Subject: [PATCH] add driver-rs6000.c and the remaining powerpc mknative-gcc files. the ppc native gcc now links but doesn't run yet properly. --- external/gpl3/gcc/usr.bin/cpp/Makefile | 6 +++++- external/gpl3/gcc/usr.bin/frontend/Makefile | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/external/gpl3/gcc/usr.bin/cpp/Makefile b/external/gpl3/gcc/usr.bin/cpp/Makefile index 770bbca827e8..a33b4a9baa86 100644 --- a/external/gpl3/gcc/usr.bin/cpp/Makefile +++ b/external/gpl3/gcc/usr.bin/cpp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/06/29 02:17:17 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2011/07/02 14:06:42 mrg Exp $ # For ../Makefile.inc and bsd.own.mk .include @@ -11,6 +11,10 @@ SRCS= gcc.c cppspec.c prefix.c version.c SRCS+= driver-i386.c .PATH: ${DIST}/gcc/config/i386 .endif +.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" +SRCS+= driver-rs6000.c +.PATH: ${DIST}/gcc/config/rs6000 +.endif CPPFLAGS+= -I${BACKENDOBJ} CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\" diff --git a/external/gpl3/gcc/usr.bin/frontend/Makefile b/external/gpl3/gcc/usr.bin/frontend/Makefile index f1762286601c..b1eb3edd9e62 100644 --- a/external/gpl3/gcc/usr.bin/frontend/Makefile +++ b/external/gpl3/gcc/usr.bin/frontend/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2011/06/29 02:16:52 mrg Exp $ +# $NetBSD: Makefile,v 1.4 2011/07/02 14:06:42 mrg Exp $ LIBISPRIVATE= yes @@ -14,6 +14,10 @@ SRCS= gcc.c version.c intl.c prefix.c opts-common.c gcc-options.c SRCS+= driver-i386.c .PATH: ${DIST}/gcc/config/i386 .endif +.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" +SRCS+= driver-rs6000.c +.PATH: ${DIST}/gcc/config/rs6000 +.endif CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \ ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \