Subject: MacOS-10.2.3 [ aka Darwin-7.2.0 ? ] vs. buildlink3
To: None <pkgsrc-bugs@netbsd.org>
From: Chris Jepeway <jepeway@blasted-heath.com>
List: pkgsrc-bugs
Date: 02/11/2004 19:58:44
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?

Chris.