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

a b tripivceta at hotmail.com
Fri Mar 22 20:50:24 UTC 2013

> CPPFLAGS="${CPPFLAGS} -I%{_prefix}/include"; export CPPFLAGS
> LDFLAGS="${LDFLAGS} -L%{_libdir} -R${ORIGIN}:${ORIGIN}/../%{_lib}:${ORIGIN}/../../%{_lib}:%{_libdir}"; export LDFLAGS
> CFLAGS="${CFLAGS} -Wl,-L%{_libdir},-R${ORIGIN}:${ORIGIN}/../%{_lib}:${ORIGIN}/../../%{_lib}:%{_libdir}"; export CFLAGS
> CXXFLAGS="${CXXFLAGS} -Wl,-L%{_libdir},-R${ORIGIN}:${ORIGIN}/../%{_lib}:${ORIGIN}/../../%{_lib}:%{_libdir}"; export CXXFLAGS

I forgot, you are probably using GCC, are you not? If so, replace "-R" with "-rpath". GNU of course has to be differ from any and all standards, just because it can! 		 	   		  

More information about the Pdns-users mailing list