diff --git a/modules/access/Makefile.am b/modules/access/Makefile.am
index cc0e024c2c0dd408bf866034e29c22526d409cf3..fa23bd86e3e8414e0473d0f60b84ae081b9ee1ab 100644
--- a/modules/access/Makefile.am
+++ b/modules/access/Makefile.am
@@ -422,7 +422,7 @@ EXTRA_LTLIBRARIES += libsftp_plugin.la
 
 libnfs_plugin_la_SOURCES = access/nfs.c
 libnfs_plugin_la_CFLAGS = $(AM_CFLAGS) $(NFS_CFLAGS)
-libnfs_plugin_la_LIBADD = $(NFS_LIBS)
+libnfs_plugin_la_LIBADD = $(NFS_LIBS) $(SOCKET_LIBS)
 libnfs_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
 access_LTLIBRARIES += $(LTLIBnfs)
 EXTRA_LTLIBRARIES += libnfs_plugin.la