Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 14:51:17 -0700
From:      Peter Wemm <peter@wemm.org>
To:        obrien@FreeBSD.org
Cc:        Ruslan Ermilov <ru@FreeBSD.org>, Marcel Moolenaar <marcel@xcllnt.net>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/gnu/usr.bin/gperf Makefile src/gnu/usr.bin/groff/src/devices/grodvi Makefile src/gnu/usr.bin/groff/src/devices/grohtml Makefile src/gnu/usr.bin/groff/src/devices/grolbp Makefile sr 
Message-ID:  <20020411215117.20D553810@overcee.wemm.org>
In-Reply-To: <20020411135740.A13856@dragon.nuxi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

"David O'Brien" wrote:
> On Thu, Apr 11, 2002 at 12:33:53PM +0300, Ruslan Ermilov wrote:
> > +.if defined(PROG_CXX)
> > +PROG=	${PROG_CXX}
> > +DPADD+=	${LIBSTDCPLUSPLUS}
> > +LDADD+=	-lstdc++
> > +.endif
> 
> We really should not be doing this part -- we do not do it for libc.
> Making too many assumptions about how G++ expects the linking to be is
> bad.  Rather if PROG_GXX is set, 'g++' should be used for linking rather
> than 'gcc' [as Peter mentioned].  We really should just be letting g++ do
> its job.

That's what I did, except I used c++.  (we use "cc" not "gcc", we shouldn't
use "g++" either).  The main point is that this can be changed behind the
scenes without affecting the groff/gperf makefiles anymore.  This is now
an implementation detail.  I can finish my build testing and commit the
stuff that uses c++ etc to do the final link.

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020411215117.20D553810>