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

a b tripivceta at hotmail.com
Thu Apr 11 21:05:04 UTC 2013

> 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". 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20130411/243ce2f8/attachment-0001.html>

More information about the Pdns-users mailing list