[xmlsec] Dynamic Libraries Under OS X

David Mundie mundie@anthus.com
Sun, 11 Jan 2004 18:30:09 -0500


I found this in a FAQ at opendarwin.org [1]:


> 	=95 	How do I port shared libraries to Darwin?
>
> Unfortunatly, at the moment, there is no straightforward way. Since=20
> the defacto standard dl* functions are based on ELF and Darwin uses=20
> Mach-O binaries, there is no simple port. Darwin uses the NeXT dyld=20
> dynamic link editor, and there is a man page with plenty of good=20
> information. There are also higher level functions that are probably=20=

> closer to what you want (NSObjectFileImage for example). Unfortunatly,=20=

> the man pages for these functions are not in the Darwin CVS tree.

Is it really this simple? Is xmsec just using ELF's dl* functions,=20
which are incompatible with Mach-O?

If so, it amazes me that I was able to get xmlsec to work with my=20
LD_LIBRARY_PATH/symbolic-.dylib-to-.so-link solution!

  - dam

[1] http://www.opendarwin.org/en/faq.php#dynlib=