From owner-freebsd-ports Wed Jul 8 02:26:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA07522 for freebsd-ports-outgoing; Wed, 8 Jul 1998 02:26:28 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA07450; Wed, 8 Jul 1998 02:26:19 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id WAA10805; Tue, 7 Jul 1998 22:45:08 -0700 (PDT) (envelope-from jdp) Message-Id: <199807080545.WAA10805@austin.polstra.com> To: Terry Lambert cc: obrien@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: gcc/g++ 2.8.1 port maintainers/modifiers In-reply-to: Your message of "Tue, 07 Jul 1998 13:15:36 PDT." <35A281E8.FCE@whistle.com> Date: Tue, 07 Jul 1998 22:45:08 -0700 From: John Polstra Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The brain damage is in bsd.prog.mk: > > ] .if defined(DESTDIR) > ] CFLAGS+= -I${DESTDIR}/usr/include > ] CXXFLAGS+= -I${DESTDIR}/usr/include/g++ > ] .end > > > Obviously, I have DESTDIR defined (in fact, it is required). Aha. Well, I'm glad you figured out the problem. > The bug is that the DESTDIR is examined, incorrectly, for > include path information. This is because there is no > seperation between the idea of installed binaries vs. > installed build environment components. > > Therefore, the includes are redirected into the install > environment, instead of the build environment. Yes, various things have been tried. The top-level Makefile and bsd.*.mk files are more of an art than a science. The current scheme was a big step forward from what we had before. It made it possible to build -current on a -stable system, for instance. But I don't think anybody would argue that it's perfect. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message