Dynamic Loading (patch)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic Loading (patch)

Nigel Williams-5
Hi,

When trying to load a shared library with DLD>>#addLibrary:, it is  
currently not possible to load a file that does not contain a period.  
This means that you can not load (for example) 'Cocoa.framework/Cocoa'.

Patch attached to try the string passed before trying to mess around  
with what libtool thinks the shared library extension should be.

Nigel




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

dlopen.diff (510 bytes) Download Attachment
smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic Loading (patch)

Paolo Bonzini-2
On 10/13/2009 01:45 PM, Nigel Williams wrote:
> Hi,
>
> When trying to load a shared library with DLD>>#addLibrary:, it is
> currently not possible to load a file that does not contain a period.
> This means that you can not load (for example) 'Cocoa.framework/Cocoa'.

The right way to do that would be to load "Cocoa" and have ltdl figure
out it should dlopen "Cocoa.framework/Cocoa".

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk