On Sat, 28 Jan 2012 16:52:05 GMT, michael(a)stroeder.com wrote:
> Hmm, it seems I get better result linking smbk5pwd with
> contrib/slapd-modules/smbk5pwd/Makefile containing:
>
> LDAP_LIB=-lldap_r -llber -L../../../libraries/libldap_r/.libs
> -L../../../libraries/liblber/.libs
>
> instead of just
>
> LDAP_LIB=-lldap_r -llber
>
> Is that the right solution when rpath is already set when invoking
> configure?
If you build *and install* the rest of OpenLDAP first and then build
smbk5pwd, I imagine it'll work fine if -L and -rpath are the same.
Otherwise you should point -L at where all the
libraries-to-be-installed
are, which with a dynamic build is the .lib/ directories.
After all -L is for build time and -rpath for runtime, and they should
be set so that you build against the same libraries you will run with.
At least I hope that's all. I wouldn't be surprised if some libtool
magic introduces more complications:-(
--
Hallvard