From 4563b128e1fbd19ae467468e405d7c3c8c07cdca Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 1 Jun 2003 02:09:31 +0000 Subject: [PATCH] * 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). --- gnu/lib/libgcc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index 50a63eaf6a7f..8cb969b1c88d 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