Stop linking with -lnsl on Linux

Martin Buchholz martinrb at
Thu Jun 10 22:16:13 UTC 2010

Hi Kelly, I'd like you to do a code review.

The JDK links with libnsl on Linux, but this is an unused dependency.

Here's a patch to stop linking with it - very similar to the handling
of libsocket:

I don't know whether libnsl is also unused on Solaris - I'll leave
that up to someone else.  Solaris and Linux libnsls are very



More information about the build-dev mailing list