Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/usr.bin/cpp make this build with GCC 4.5.
details: https://anonhg.NetBSD.org/src/rev/19ebda0e173b
branches: trunk
changeset: 766623:19ebda0e173b
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 29 02:17:17 2011 +0000
description:
make this build with GCC 4.5.
diffstat:
external/gpl3/gcc/usr.bin/cpp/Makefile | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 6550197a43ba -r 19ebda0e173b external/gpl3/gcc/usr.bin/cpp/Makefile
--- a/external/gpl3/gcc/usr.bin/cpp/Makefile Wed Jun 29 02:16:52 2011 +0000
+++ b/external/gpl3/gcc/usr.bin/cpp/Makefile Wed Jun 29 02:17:17 2011 +0000
@@ -1,11 +1,26 @@
-# $NetBSD: Makefile,v 1.1 2011/06/21 06:03:14 mrg Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/29 02:17:17 mrg Exp $
-.include <bsd.own.mk>
+# For ../Makefile.inc and bsd.own.mk
+.include <bsd.init.mk>
PROG= cpp
-SRCS= cppspec.c
+SRCS= gcc.c cppspec.c prefix.c version.c
+
+# XXX
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
+SRCS+= driver-i386.c
+.PATH: ${DIST}/gcc/config/i386
+.endif
CPPFLAGS+= -I${BACKENDOBJ}
+CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
+
+CPPFLAGS.gcc.c+= -I${GCCARCH} -I${BACKENDOBJ} -I. \
+ ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
+ -DPREFIX=\"/usr\" \
+ -DDEFAULT_TARGET_VERSION=\"${G_version}\" \
+ -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \
+ -DCONFIGURE_SPECS="\"\""
LINKS= ${BINDIR}/cpp ${BINDIR}/gcpp
@@ -17,6 +32,8 @@
.include "../Makefile.frontend"
+LDADD+= -lintl
+
.include <bsd.info.mk>
.PATH: ${DIST}/gcc ${DIST}/gcc/doc
Home |
Main Index |
Thread Index |
Old Index