From owner-freebsd-current Fri Sep 21 7:33:20 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 16DF437B40F; Fri, 21 Sep 2001 07:33:16 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id AAA01983; Sat, 22 Sep 2001 00:33:12 +1000 Date: Sat, 22 Sep 2001 00:32:43 +1000 (EST) From: Bruce Evans X-X-Sender: To: Ruslan Ermilov Cc: Peter Wemm , Warner Losh , Steve Kargl , Subject: Re: stdin/out/err changes kill world In-Reply-To: <20010921102207.H27714@sunbay.com> Message-ID: <20010922002628.I76524-100000@delplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 21 Sep 2001, Ruslan Ermilov wrote: > This is because BMAKEENV has DESTDIR=${WORLDTMP}, and > bsd.{prog,lib}.mk have the magic of adding the > -I${DESTDIR}/usr/include to CFLAGS if DESTDIR is set. > > I'm currently testing the following patch with the > -CURRENT build on a -STABLE box. > > Index: bsd.prog.mk > =================================================================== > RCS file: /home/ncvs/src/share/mk/bsd.prog.mk,v > retrieving revision 1.100 > diff -u -r1.100 bsd.prog.mk > --- bsd.prog.mk 2001/06/14 06:08:02 1.100 > +++ bsd.prog.mk 2001/09/21 07:23:14 > @@ -11,7 +11,7 @@ > .SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .s .S > > CFLAGS+=${COPTS} ${DEBUG_FLAGS} > -.if defined(DESTDIR) > +.if defined(DESTDIR) && !defined(BOOTSTRAPPING) > CFLAGS+= -I${DESTDIR}/usr/include > CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ > .endif > Index: bsd.lib.mk > =================================================================== > RCS file: /home/ncvs/src/share/mk/bsd.lib.mk,v > retrieving revision 1.97 > diff -u -r1.97 bsd.lib.mk > --- bsd.lib.mk 2001/05/19 23:24:17 1.97 > +++ bsd.lib.mk 2001/09/21 07:23:15 > @@ -37,7 +37,7 @@ > .endif > .endif > > -.if defined(DESTDIR) > +.if defined(DESTDIR) && !defined(BOOTSTRAPPING) > CFLAGS+= -I${DESTDIR}/usr/include > CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ > .endif This CFLAGS adjustment should be moved to src/Makefile.inc1 someday. Using the includes in DESTDIR can only be right if you have just installed them there, but if you did that you can adjust CFLAGS too. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message