[PD-dev] how to load shared code for libraries

Hans-Christoph Steiner hans at at.or.at
Wed Oct 19 00:50:21 CEST 2011


On Thursday, September 29, 2011 8:49 AM, "IOhannes m zmölnig"
<zmoelnig at iem.at> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 09/28/2011 03:07 PM, Hans-Christoph Steiner wrote:
> > 
> > Ah, ok, that changes things.  So you are sure there isn't a way to make
> > this work?  
> 
> on, i'm not sure. i only reported issues i came across.
> 
> > If so, do you think there are other shared library
> > techniques you think could work? 
> 
> i hope, but i do not know.
> 
> >  Otherwise, it looks like we are back
> > to my original manual dlopen() proposal.
> 
> i'm still no friend of this.
> i'm afraid that all real-life solutions that involve dlopen(), will
> require significantly more code to be crammed into each external (only
> to make this work) than will be put into the "shared code library".
> 
> which would make the entire attempt futile.

I found something promising for GNU/Linux to complete this project:
http://grahamwideman.wordpress.com/2009/02/09/the-linux-loader-and-how-it-finds-libraries/

DT_RUNPATH: Using the DT_RUNPATH dynamic section attribute of the binary
if present. (Ie: the executable can provide a list of paths t search for
objects to load. However, DT_RUNPATH is not applied at the point those
objects load other objects. — GW)

.hc




More information about the Pd-dev mailing list