From owner-freebsd-current Sat Mar 16 11:58:55 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA27359 for current-outgoing; Sat, 16 Mar 1996 11:58:55 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA27350 for ; Sat, 16 Mar 1996 11:58:52 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id MAA17800; Sat, 16 Mar 1996 12:52:48 -0700 From: Terry Lambert Message-Id: <199603161952.MAA17800@phaeton.artisoft.com> Subject: Re: libg++ Makefile and /usr/include To: mark@grondar.za (Mark Murray) Date: Sat, 16 Mar 1996 12:52:47 -0700 (MST) Cc: George.Scott@cc.monash.edu.au, current@FreeBSD.org In-Reply-To: <199603160736.JAA29985@grumble.grondar.za> from "Mark Murray" at Mar 16, 96 09:36:26 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > This is probably a silly question, but... > > > > In gnu/lib/libg++/Makefile there is a bit of code that looks like: > > > > > CFLAGS+= -nostdinc -I${.CURDIR}/include -I/usr/include > > > CXXFLAGS+= -I${.CURDIR}/include -I/usr/include/g++ -I/usr/include \ > > > -nostdinc++ > > > > Why is /usr/include mentioned explicitly? > > Because of the "-nostdinc", which means "No standard include directories". > I'm not quite sure why it is done that way round, though... Why is /usr/include mentioned explicitly? Specifically, why is it using the include files from the host system instead of the ones from the source tree? This is a pain in the butt on a cross-environment. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.