Subject: Re: galeon12 fails to build on 2.0 branch
To: Johnny C. Lam <jlam@NetBSD.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-pkg
Date: 09/29/2004 14:36:25
"Johnny C. Lam" wrote:

> On Wed, Sep 29, 2004 at 12:23:03PM +1000, Simon Burge wrote:
> > www/galeon12/Makefile has the following fragment in it:
> > 
> > .if !empty(CC_VERSION:Mgcc-3*)
> > # Workaround for gcc3 build issue
> > post-buildlink:
> >     ${CP} ${BUILDLINK_DIR}/bin/cc ${BUILDLINK_DIR}/bin/cc.orig
> >     ${SED} 's:\(exec \$$cmd\):\1 -lstdc++ -lm:' ${BUILDLINK_DIR}/bin/cc.orig \
> >                                             > ${BUILDLINK_DIR}/bin/cc
> > .endif
> > 
> > If I leave this in, the cp fails and the build aborts.  If I remove the
> > above snippet, then galeon12 builds just fine.  Any ideas on what the
> > above is trying to do?
> 
> *complete state of shock*
> 
> That post-buildlink target is "Pure Evil" (mmm, Time Bandits).
> 
> The error you're seeing is because the "cc" wrapper no longer lives
> in ${BUILDLINK_DIR}.  This problem should be fixed properly by linking
> with "c++" and not "cc", instead of forcing everything to be linked
> against libstdc++.  This is definitely worthy of a PR.

pkg/27072 has been filed.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/