[asterisk-dev] Why -lnsl in IKSEMEL_LIB ?

Luigi Rizzo rizzo at icir.org
Tue Nov 7 13:31:15 MST 2006


On Tue, Nov 07, 2006 at 12:40:22PM -0600, Kevin P. Fleming wrote:
> Luigi Rizzo wrote:
> > i suppose the only way to see is try, on a linux box with iksemel,
> > removing the various libs (-lnsl -lz -lcrypt) and see if it
> > still links (there are no headers involved so the problem
> > can only be there).
> 
> Because of Linux' support for shared-library-dependencies, these may not
> be needed at all. We frequently run into issues on other platforms
> though, where we do have to specify sub-library dependencies because the
> platform can't do it for us, so this may have been a 'safety' measure.

well, the thing is, on FreeBSD at least libnsl does not exist so
putting it in the loader flags breaks the build.
The same may happen for other platforms.
i would suggest to remove these extra libs (except for gnutls, but probably it
is already there after detecting gnutls) and let autoconf handle the dependency.


cheers
luigi

> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev


More information about the asterisk-dev mailing list