[Pdns-users] Building pdns RPMs using custom LDAP libraries/headers

Nikolaos Milas nmilas at admin.noa.gr
Thu Apr 11 18:21:59 UTC 2013


On 11/4/2013 4:20 μμ, a b wrote:

> Please add "-rpath /usr/local/openldap/lib64" to your LDFLAGS so that 
> you do not have to resort to LD_LIBRARY_PATH or ld.so.conf hacks.

Hmm, it didn't work like that:

LDFLAGS="${LDFLAGS} -L/usr/local/openldap/lib64 -lldap -llber -rpath 
/usr/local/openldap/lib64"; export LDFLAGS

In config.log:

    gcc: unrecognized option '-rpath'

But it worked as:

LDFLAGS="${LDFLAGS} -L/usr/local/openldap/lib64 -lldap -llber 
-R/usr/local/openldap/lib64"; export LDFLAGS

Thanks again for your help! :-)

Cheers,
Nick





More information about the Pdns-users mailing list