Skip to contentSkip to conversation

autoconf: fix link of libwbclient

PATCH New Jeff Layton 1 participant 1 message Dec 7, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autoconf: fix link of libwbclient

It's currently getting added to $LIBS and being linked into places that we don't need it.

---
 aclocal/idmap.m4 | 2 ++
 1 file changed, 2 insertions(+)
aclocal/idmap.m4 +2 -0
index c5727f6..3ccdae3 100644
@@ -21,6 +21,7 @@ fi
 
 if test $enable_cifsacl != "no" -o $enable_cifsacl != "no"; then
 	ac_wbc_save_LDFLAGS="$LDFLAGS"
+	ac_wbc_save_LIBS="$LIBS"
 	LDFLAGS="$LDFLAGS $WBCLIENT_LIBS"
 	AC_CHECK_LIB(wbclient, wbcSidsToUnixIds, , [
 				if test "$enable_cifsidmap" = "yes"; then
@@ -37,6 +38,7 @@ if test $enable_cifsacl != "no" -o $enable_cifsacl != "no"; then
 				fi
 			])
 	LDFLAGS=$ac_wbc_save_LDFLAGS
+	LIBS=$ac_wbc_save_LIBS
 fi
 
 if test $enable_cifsacl != "no"; then
Signature · 1 line
1.8.4.2