[Opendnssec-develop] libtool and dependency in statics

Jakob Schlyter jakob at kirei.se
Mon Jun 8 14:48:58 UTC 2009


On 8 jun 2009, at 16.22, Jelte Jansen wrote:

> from a bit of experimenting after a build failure in the enforcer, I  
> just found out that libtool appears to do some form of lazy linking  
> in its output: libhsm.la depends on libldns.la, but it doesn't  
> remember its location (i don't use default paths for self-built  
> software)
>
> So when building the enforcer libtool wants libldns.la to be in /usr/ 
> local/lib, and since the configure there rightfully does not contain  
> an optin --with-ldns=, it fails. Until i remove libhsm.la at the  
> target (in this case ~/opt/opendnssec/lib/libhsm.la).
>
> Does anyone if there is some magic chant for libtool to include the  
> needed ldns function in libhsm.la (or let it search the right  
> location for libldns.la, it does seem to be written into that .la  
> file, but appears to be ignored...)

one should also note that the enforcer does not any functions in  
libhsm that actually depends on ldns, so ldns shoudn't even be needed  
in the first place (that's why we moved DNS-specific functions to  
libhsmdns.h).

	jakob




More information about the Opendnssec-develop mailing list