summaryrefslogtreecommitdiff
path: root/gnu/lib
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-06-01 02:09:31 +0000
committerthorpej <thorpej@NetBSD.org>2003-06-01 02:09:31 +0000
commit4563b128e1fbd19ae467468e405d7c3c8c07cdca (patch)
treeb9e7db867f6ad80332df33a57dd4e1f2143885b8 /gnu/lib
parenta20987422eaab59b9ab1ca82fbe8007c86446470 (diff)
* If MKGCC == no, don't build this library, which is bundled with the
compiler. * Set GNUHOSTDIST (transitional, for use with new mknative). * Add -I${.CURDIR} to CPPFLAGS (to support a future change).
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libgcc/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index 50a63eaf6a7..8cb969b1c88 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2002/09/17 23:18:33 thorpej Exp $
+# $NetBSD: Makefile,v 1.45 2003/06/01 02:09:31 thorpej Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -9,13 +9,15 @@ LIB= gcc
.cc: # disable .cc->NULL transform
-.if exists(${.CURDIR}/${MACHINE_ARCH}.mk)
+.if exists(${.CURDIR}/${MACHINE_ARCH}.mk) && ${MKGCC} != "no"
.include "${.CURDIR}/${MACHINE_ARCH}.mk"
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
+GNUHOSTDIST= ${DIST}
GCCARCH= ${NETBSDSRCDIR}/gnu/usr.bin/gcc/arch/${MACHINE_ARCH}
GCPPFLAGS= ${G_LIBGCC2_CFLAGS} ${G_MAYBE_USE_COLLECT2} ${G_INCLUDES}
+CPPFLAGS+= -I${.CURDIR}
CPPFLAGS+= -I${GCCARCH} ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
-I${DIST}/gcc/cp