Subject: Re: library inclusion order bug with pkgsrc
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: tech-pkg
Date: 04/14/2005 12:04:39
On Thursday 14 April 2005 11:47, Georg Schwarz wrote:
> I used the following patch to pkgsrc to work around the issue:
>
> --- mk/bsd.pkg.use.mk.orig      Thu Apr 14 00:42:41 2005
> +++ mk/bsd.pkg.use.mk   Thu Apr 14 01:16:23 2005
> @@ -187,7 +187,8 @@
>  .if defined(USE_X11)
>  X11_LDFLAGS+=          ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX}
>  X11_LDFLAGS+=          -L${X11BASE}/lib${LIBABISUFFIX}
> -LDFLAGS+=              ${X11_LDFLAGS}
> +LDFLAGS+=              ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib \
> +                       -L${LOCALBASE}/lib ${X11_LDFLAGS}
>  .endif

Update to version 1.8 of bsd.pkg.use.mk, which removes the LDFLAGS line 
entirely.  This was a bug that was introduced when the BUILDLINK3 support was 
switched on always.

cheers
mark