Should libhogweed have a dependency on libnettle if I'm compiling each as shared libraries? Or should I be linking against nettle's static library and thus have duplicate functions in each?
Thanks, - David Hoyt
On 09/16/2010 05:47 PM, Hoyt, David wrote:
Should libhogweed have a dependency on libnettle if I'm compiling each as shared libraries? Or should I be linking against nettle's static library and thus have duplicate functions in each?
I'd recommend explicit dependencies. Duplicate definitions seem potentially problematic.
Debian does explicit dependencies, fwiw:
0 dkg@pip:~$ apt-cache show libhogweed1 | grep ^Depend Depends: libc6 (>= 2.1.3), libgmp3c2, libnettle3 0 dkg@pip:~$
hth,
--dkg
"Hoyt, David" hoyt6@llnl.gov writes:
Should libhogweed have a dependency on libnettle if I'm compiling each as shared libraries? Or should I be linking against nettle's static library and thus have duplicate functions in each?
Like dkg, I think it makes sense for a shared hogweed library to have a dependency on the shared nettle library (and on a shared gmp library). But I'm not familiar with how such dependencies work with dlls.
Regards, /Niels
Thanks,
- David Hoyt
nettle-bugs mailing list nettle-bugs@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
nettle-bugs@lists.lysator.liu.se