Subject: Re: USE_LIBSTDCXX
To: None <tech-toolchain@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: tech-toolchain
Date: 08/17/2004 07:32:59
On Monday 16 August 2004 17:58, Jason Thorpe wrote:
> On Aug 16, 2004, at 9:11 AM, Nick Hudson wrote:
> > The c++  driver is already used (with -Wl,-nostdlib) to link when
> > PROG_CXX is
> > defined and it will always add -lstdc++ unless one of -nodefaultlibs or
> > -nostdlibs is specified.
>
> But for C programs, don't we now use -B... instead of -nostdlib?  (I
> guess we still want to pass that to ld, hence the -Wl,-nostdlib)... but
> if we're already using the c++ driver, why are we still providing
> -lstdc++ or -lsupc++ on the command line?

This is the bug I'm trying to fix.

The c++ driver currently doesn't know anything about libsupc++.

Nick