[Pdns-users] Building pdns RPMs using custom LDAP libraries/headers
Nikolaos Milas
nmilas at admin.noa.gr
Thu Apr 11 20:21:27 UTC 2013
On 11/4/2013 9:51 μμ, a b wrote:
> That means that ./configure is using the compiler front end (gcc) to
> link the executable, which is correct and good, but is using LDFLAGS
> to do that, which is a mistake.
>
> For linking with the front end, the ./configure script should be using
> CFLAGS:
>
> -Wl,-rpath, at LIBDIR@
You mean I should set:
CFLAGS="${CFLAGS} -Wl/usr/local/openldap/lib64 -lldap -llber -rpath
/usr/local/openldap/lib64"; export CFLAGS
...rather than LDFLAGS ?
-lldap and -llber remain in there as they were?
And what is @LIBDIR@ ? How do we use it?
By the way, why using LDFLAGS is a mistake and we should do it with CFLAGS?
Regards,
Nick
More information about the Pdns-users
mailing list