> You mean I should set:
>
> CFLAGS="${CFLAGS} -Wl/usr/local/openldap/lib64 -lldap -llber -rpath
> /usr/local/openldap/lib64"; export CFLAGS
>
> ...rather than LDFLAGS ?
No, leave it as is, for now. The "-Wl,..." is for the maintainers of the
./configure.in. Ideally, they will fix it.
The compiler front end is never supposed to use LDFLAGS, nor does the compiler
front end need them ("-Wl" is used for passing the link flags to the linker);
LDFLAGS are strictly for scenarios where linking is performed by directly
calling ld(1), which is not recommended for general development of
applications, and is the constant source of portability issues and grief.
Nevertheless, a lot of people mistakenly pass LDFLAGS to the compiler's front
end, in this particular case gcc.
> And what is @LIBDIR@ ? How do we use it?
It is a placeholder that ./configure substitutes when it generates the
Makefile(s) from "Makefile.in". _______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users