--- Makefile.orig       2013-08-16 15:59:53.000000000 +0000
+++ Makefile    2013-08-16 16:05:16.810962011 +0000
@@ -723,7 +723,7 @@
 SHLIB          = shared/libwrap.so.$(SOMAJOR).$(SOMINOR)
 SHLIBSOMAJ     = shared/libwrap.so.$(SOMAJOR)
 SHLIBSO                = shared/libwrap.so
-SHLIBFLAGS     = -Lshared -lwrap
+SHLIBFLAGS     = -Lshared -lwrap -lnsl
 
 SHLINKFLAGS = -Bsymbolic-functions -shared -Wl,-soname=libwrap.so.$(SOMAJOR) -Wl,--version-script=libwrap.lds
 SHCFLAGS = -fpic
