Question about building tinc pre4

Cris van Pelt "Cris van Pelt" at tribe.eu.org
Thu Jun 21 09:20:53 CEST 2001


On Wed, Jun 20, 2001 at 01:07:18PM +0200, Guus Sliepen wrote:
> > 
> > libcrypto.a uses libdl calls, but tinc doesn't.  Somewhere along the
> > line, something went wrong.
> 
> Well, the problem is that static libraries apparently do not include
> dependencies on other libraries like shared ones do. I don't know if
> libcrypto.a should have been linked with libdl.a or not...  We can put the -ldl
> back in, but it would make no sense if you would build a shared version of
> tinc.  Anyone here who thinks he knows what the best thing to do is?
> 

As far as I know -ldl is always needed if you use the dlopen() library
call and friends.  Apparently this is what libcrypto does.

If you want to link your program to a library depending on another library
you MUST link your program to both of these. It would be redundant to copy
libdl into libcrypto merely because it depends on it. The whole point of
libraries would be lost.

--
Cris van Pelt <"Cris van Pelt"@tribe.eu.org>

-
Tinc:         Discussion list about the tinc VPN daemon
Archive:      http://mail.nl.linux.org/lists/
Tinc site:    http://tinc.nl.linux.org/



More information about the Tinc mailing list