On Wed, Aug 16, 2006, Caleb Epstein wrote: > On 8/16/06, Ralf S. Engelschall <[EMAIL PROTECTED]> wrote: > On Wed, Aug 16, 2006, Caleb Epstein wrote: > > > [...] > > The awesome zsh shell, for example, needs > > shared library support for its loadable modules. > > [...] > > I had a look at our ZSH packaging and tried the --enable-dynamic. I see > no problem to provide a "with_dynamic" option which builds ZSH with DSO > based modules and a libzsh*.so. But one question remains to me: what is > the actual benefit? I mean, does ZSH then "lazy load" the extensions on > first use? Or can one write and link in this way an own ZSH extension > (and is this really done by someone)? > > Some of the extensions are available only as loadable modules. This may be a > bug, but it is what it is.
I've now investigated on the ZSH package and the results are already available in OpenPKG-CURRENT: see http://cvs.openpkg.org/chngview?cn=29625 for details. Especially the patch shows you how complex it can be to use shared libraries in a fully portable way ;-) Happy ZSH extension module hacking... Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org