Subject: Re: MacOS-10.2.3 [ aka Darwin-7.2.0 ? ] vs. buildlink3
To: Chris Jepeway <jepeway@blasted-heath.com>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 02/12/2004 08:34:20
On Wed, Feb 11, 2004 at 07:58:44PM -0500, Chris Jepeway wrote:
> I'm trying to build net/ethereal.  There seem to
> be problems with buildlink3 that I end up fixing
> by adding lines like
> 
>     x=
>     set -- $ldflags
>     for i in "$@" ; do
> 	    case "$i" in
> 	    -lg*-2) i="$i".0 ;;
> 	    esac
> 	    x="$x $i"
>     done
>     ldflags="$x"
> 
> towards the end of the work/.buildlink/bin/gcc scripts to
> get glib2 to compile.  This fixes errors like
> 
>     ld: can't locate file for: -lglib-2
> 
> generated by the command lines whacked around by the sed xforms.
> 
> I had to do s/t similar for pango, too, so the linker saw
> -lpango-1.0 instead of -lpango-1.
> 
> Does this merit a(nother) PR for pkgsrc & Darwin?
> Or is this related to the troubles in pkg/24352
> and so a known problem?

Please submit a new PR for this issue.  It's quite different from
pkg/24352.  I will take a look at it soon.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>