Subject: Re: c++ targets
To: Andrew Brown <atatat@atatdot.net>
From: Todd Vierling <tv@pobox.com>
List: tech-toolchain
Date: 09/17/1999 21:31:15
On Fri, 17 Sep 1999, Andrew Brown wrote:

: as you can see, the object files get made using the c++ compiler, but
: the target (built from the objects, hence using the .o suffix rule)
: uses only the c compiler, which lacks a rather useful library.
: setting CC to c++ at the top of the makefile fixes the link, but
: strikes me as a "nasty hack".

It's actually what is necessary.  After all, how do you know what language
was actually used when linking a random bunch of .o files?  (Remember that
bsd.prog.mk can actually handle mixed languages, since it compiles to .o and
then links everything.)

-- 
-- Todd Vierling (tv@pobox.com)