Subject: Re: gcc 3.3 & '/usr/bin/ld: cannot find -lgcc_eh'
To: grant beattie <>
From: David Brownlee <>
List: tech-pkg
Date: 06/08/2003 23:25:40
On Mon, 9 Jun 2003, grant beattie wrote:

> On Sun, Jun 08, 2003 at 09:14:39PM +0100, David Brownlee wrote:
> > > include mk/ so it can find libgcc_eh.
> >
> > 	Should every program thet gets built with gcc3 include
> > 	mk/ (as in should there be a test for that
> > 	in
> only those which need "special care" - most packages don't need
> anything special to build with gcc3. the above is indeed a side-effect
> of buildlink2.
> gcc3 is a large beast, and including adds a
> considerable amount of time to the buildlink target for no reason in
> most packages, which is why I chose to not do that automatically.
> and for those who are about to say "we'll need to change all this
> when gcc3 is in base NetBSD"... no, only small changes will be
> required, and this stuff will still be required for non-NetBSD
> systems. :-)

	It seems strange to include mk/ in a package
	that doesn't actually require gcc, just special handling in
	the case of gcc3. Maybe it should be

	.if defined(USE_GCC3)
	. include "../../mk/"

		David/absolute          -- No hype required --