Subject: Re: galeon12 fails to build on 2.0 branch
To: Simon Burge <simonb@wasabisystems.com>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 09/29/2004 03:18:31
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.
Cheers,
-- Johnny Lam <jlam@NetBSD.org>