Subject: Re: USE_LIBSTDCXX
To: None <tech-toolchain@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: tech-toolchain
Date: 08/16/2004 17:11:41
On Monday 16 August 2004 16:38, Jason Thorpe wrote:
> On Aug 16, 2004, at 1:49 AM, Nick Hudson wrote:
> > I noticed that USE_LIBSTDCXX is broken and all the groff tools get
> > linked
> > against stdc++.
> >
> > Is the attached fix OK?
>
> Actually, I think instead of using ${_CCLINK}, we should create a
> ${_CXXLINK} so that we let the C++ driver program choose the libraries
> to use.

You've lost me...

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.

My diffs remove the automatic addition of -lstdc++ when -lsupc++ is passed.

Nick