Date: Sat, 16 Mar 1996 12:52:47 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: mark@grondar.za (Mark Murray) Cc: George.Scott@cc.monash.edu.au, current@FreeBSD.org Subject: Re: libg++ Makefile and /usr/include Message-ID: <199603161952.MAA17800@phaeton.artisoft.com> In-Reply-To: <199603160736.JAA29985@grumble.grondar.za> from "Mark Murray" at Mar 16, 96 09:36:26 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603161952.MAA17800>
