Subject: Re: C++ program handling in bsd.prog.mk
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-toolchain
Date: 01/04/2002 13:56:27
On Fri, 4 Jan 2002, Jason R Thorpe wrote:
: > Looks fine to me, albeit that -lstdc++ -lm should always be included. I
: > know it's not "needed" for groff and gcc 2.95, but it's a good idea to make
: > it consistent, since linking with "c++" without DESTDIR will add them.
:
: Hm? We don't add -lgcc to the command line for non-DESTDIR builds...,
: so why do it for libstdc++ -lm?
No, I'm pointing out that when you *link* a program using "c++" (which
should be done if the program is C++, but I can't remember now if your patch
does this), you'll get -lstdc++ and -lm implicitly. So we should be
consistent with that when using DESTDIR.
--
-- Todd Vierling <tv@wasabisystems.com> * Wasabi & NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/