Subject: Re: pkg/33665 (g-wrap Makefile needs to set LTDL_LIBRARY_PATH)
To: None <>
From: Darrin B.Jewell <>
List: pkgsrc-bugs
Date: 10/07/2006 15:14:54
I've actually investigated this quite a bit further, but haven't
had the chance to write it up.  Instead of the original patch, I have
been running more recently with the patch included below to the guile
buildlink support, which adds this for all guile dependent packages,
but it's basically the same idea.

I've tracked this down much further and determed that on most
platforms, the ltdl will eventually fall back to the system dlopen
which will look in the rpath coded in the binary.  However, darwin
doesn't have an rpath, and instead uses abolute paths on each of the
libraries listed in a binary.  (There is a tools for editing them if
they move, install_name_tool(1)).  Therefore darwin requires the
environment var to be set for guile to find its modules, since
loaded modules do not have an abolute path in the binary.

Btw, guile doesn't need a buildlink or dependency on devel/libltdl,
it ships with its own modified copy of ltdl which is the one it
seems to be using.


RCS file: /cvsroot/pkgsrc/lang/guile/,v
retrieving revision 1.11
diff -u -r1.11
---       8 Jul 2006 23:10:55 -0000       1.11
+++       7 Oct 2006 21:53:59 -0000
@@ -17,7 +17,12 @@
 BUILDLINK_PKGSRCDIR.guile?=    ../../lang/guile
+.include "../../mk/"
+.if ${OPSYS} == "Darwin"
 .include "../../devel/libltdl/"
 .include "../../devel/ncurses/"
 .include "../../devel/readline/"
 .include "../../mk/"