curl-library
Re: Problem with libldap, liblber detection on Mac OS X
Date: Sat, 03 Feb 2007 11:36:54 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Feb 2, 2007, at 11:12 PM, Dan Fandrich wrote:
> On Fri, Feb 02, 2007 at 09:00:00PM -0500, Daniel Johnson wrote:
>> So curl needs to pass either /System/Library/Frameworks/
>> LDAP.framework/Versions/A/LDAP (the actual library) or simply
>> libldap.dylib to dlopen. If no "/" appears in the path, dlopen will
>> automatically search /usr/lib. You can alternatively link directly
>> with the standard -lldap.
>
> Ok, so no libraries use the .so extension? If that's the case, then
> libtool is getting it wrong and $std_shrext should be .dylib. But,
> the
> contents of shrext_cmds (test .$module = .yes && echo .so ||
> echo .dylib)
> implies otherwise.
Yeah, .so is used for loadable modules, but never for shared
libraries. It's confusing because while modules and libraries are the
same on ELF, they're different, and non-interchangeable, on Mach-O.
Although either can be dlopened.
>
> Personally, I like Daniel's suggestion--drop all this dlopen
> oddness and
> bind it at link time.
This would probably make things simpler. :) Although all of the
Daniels are getting confusing...
Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: http://homepage.mac.com/danielj7/publickey.txt
iD8DBQFFxLon4sDFGYouOqARAvaVAJ4li/SZBxmGz2ucvliejezBthbmjwCeIcjw
oseW+sMPYuD6QIltz0wfanE=
=Iu0Z
-----END PGP SIGNATURE-----
Received on 2007-02-03