Subject: Re: gcc3's cpp not defining __GNUC__
To: Frederick Bruckman <fredb@immanent.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 07/16/2003 16:16:38
On Wed, 16 Jul 2003, Frederick Bruckman wrote:

> I think this is also why gcc3-c can't build itself. The "fixincludes"
> thing replaces most instances of #if _NETBSD_SOURCE with #if __GNUC__,
> so with gcc3, you need those defines just to get the correct
> prototypes for free(), malloc(), memcpy() and many more.
>
> I think we should be able to set "CPP=${GCC_PREFIX}/bin/cpp -gcc" in
> ${CONFIGURE_ENV} to get those definitions. That would also avoid the
> situation where you get the wrong "cpp" from the path.

	For my purpose changing gcc-3.3/mk.conf to have
		CPP=/usr/pkg/gcc-3.3/bin/cpp -gcc
	would be sufficient (in gcc3, gcc3-c, and gcc-c++). Does this seem
	generally reasonable?


-- 
		David/absolute          -- www.netbsd.org: No hype required --