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 build a host version of libcpp, sa...
details: https://anonhg.NetBSD.org/src/rev/d17a70a30792
branches: trunk
changeset: 344148:d17a70a30792
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Mar 15 19:14:47 2016 +0000
description:
build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.
diffstat:
external/gpl3/gcc/usr.bin/Makefile | 3 ++-
external/gpl3/gcc/usr.bin/Makefile.inc | 5 ++++-
external/gpl3/gcc/usr.bin/host-libcpp/Makefile | 18 ++++++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diffs (58 lines):
diff -r b9d2d9492ade -r d17a70a30792 external/gpl3/gcc/usr.bin/Makefile
--- a/external/gpl3/gcc/usr.bin/Makefile Tue Mar 15 19:13:22 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile Tue Mar 15 19:14:47 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2015/01/07 02:18:10 christos Exp $
+# $NetBSD: Makefile,v 1.8 2016/03/15 19:14:47 mrg Exp $
NOOBJ=# defined
@@ -11,6 +11,7 @@
# We keep libcpp here since it depends upon frontend.
SUBDIR+= host-libiberty .WAIT \
+ host-libcpp .WAIT \
backend .WAIT \
frontend .WAIT \
common common-target .WAIT \
diff -r b9d2d9492ade -r d17a70a30792 external/gpl3/gcc/usr.bin/Makefile.inc
--- a/external/gpl3/gcc/usr.bin/Makefile.inc Tue Mar 15 19:13:22 2016 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile.inc Tue Mar 15 19:14:47 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.25 2014/07/27 04:16:09 dholland Exp $
+# $NetBSD: Makefile.inc,v 1.26 2016/03/15 19:14:47 mrg Exp $
.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_
_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_=1
@@ -41,6 +41,9 @@
HOSTLIBIBERTYOBJ!= cd ${.CURDIR}/../host-libiberty && ${PRINTOBJDIR}
HOSTLIBIBERTY= ${HOSTLIBIBERTYOBJ}/libiberty/libiberty.a
+HOSTLIBCPPOBJ!= cd ${.CURDIR}/../host-libcpp && ${PRINTOBJDIR}
+HOSTLIBCPP= ${HOSTLIBCPPOBJ}/libcpp/libcpp.a
+
BASEVER!= cat ${GNUHOSTDIST}/gcc/BASE-VER
.if exists(${GNUHOSTDIST}/gcc/DEV-PHASE)
DEVPHASE!= cat ${GNUHOSTDIST}/gcc/DEV-PHASE
diff -r b9d2d9492ade -r d17a70a30792 external/gpl3/gcc/usr.bin/host-libcpp/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/host-libcpp/Makefile Tue Mar 15 19:14:47 2016 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2016/03/15 19:14:47 mrg Exp $
+
+libcpp/libcpp.a:
+ [ ! -d libcpp ] && mkdir libcpp || true
+ (cd libcpp; \
+ CC=${HOST_CC:Q} \
+ CFLAGS=${HOST_CFLAGS:Q} \
+ MAKE=${TOOL_GMAKE:Q} \
+ CONFIG_SHELL=${HOST_SH:Q} \
+ ${HOST_SH} ${DIST}/libcpp/configure \
+ && CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} ${TOOL_GMAKE})
+
+cleandir:
+ -rm -rf libcpp
+
+depend dependall all: libcpp/libcpp.a
+
+.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index