pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Wrong libraries chosen in pkgtools/x11-links



Roland Illig <roland.illig%gmx.de@localhost> writes:

> Quentin Garnier schrieb:
>> On Sun, Dec 07, 2008 at 08:16:33PM +0000, Jens Rehsack wrote:
>> [...]
>>> Is there a know way for fixing it?
>> 
>> Native X.Org stuff doesn't know about lib64 and stuff.  But it's not
>> just x11-links anyway, there are other things that break.
>
> Maybe the pkgsrc infrastructure should support a "link directory"
> ordering feature in the compiler wrappers. In that case, it would ensure
> that ${LOCALBASE}/lib always appears before /usr/lib{,32,64}. The same
> would be nice for the include directories.

I use the following hack along these lines, which fixes several
packages on this platform.

I hope this helps,

-russ


[ ~/work/pkgsrc-2008Q3/pkgsrc/mk/buildlink3]$ cvs diff
cvs diff: Diffing .
Index: bsd.buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/buildlink3/bsd.buildlink3.mk,v
retrieving revision 1.203
diff -u -r1.203 bsd.buildlink3.mk
--- bsd.buildlink3.mk   22 Jun 2008 23:54:06 -0000      1.203
+++ bsd.buildlink3.mk   8 Dec 2008 18:31:29 -0000
@@ -351,6 +351,13 @@
 BUILDLINK_LIBS=                # empty
 BUILDLINK_CFLAGS=      # empty
 
+#
+# rdm hack: Ensure that ${LOCALBASE}/lib is at the front of BUILDLINK_LDFLAGS
+#
+BUILDLINK_LDFLAGS+=    ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
+BUILDLINK_LDFLAGS+=    -L${LOCALBASE}/lib
+
+
 .for _pkg_ in ${_BLNK_PACKAGES}
 .  if defined(BUILDLINK_AUTO_VARS.${_pkg_}) && \
       !empty(BUILDLINK_AUTO_VARS.${_pkg_}:M[yY][eE][sS])







Home | Main Index | Thread Index | Old Index