From 1fee36432be65bd9e7477cfe9fb567de352399c3 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 13 Feb 2008 13:48:00 +0100 Subject: Add -L./bin to LDFLAGS when building shared libs. Formerly this was only needed for libwbclient, but now that we start using more shared libs internally, this is needed more globally to support linking internal libs dynamically on systemy without winbindd. Michael (This used to be commit ec793572187228deda7210dab02882e4e09f1972) --- source3/configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index f3187aa915..cde3c0b76e 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1996,6 +1996,10 @@ if test "$enable_shared" = yes -a "${ac_cv_gnu_ld_version_script}" = yes; then DSO_EXPORTS=\$\(DSO_EXPORTS_CMD\) fi +if test x"$BLDSHARED" = x"true" ; then + LDFLAGS="$LDFLAGS -L./bin" +fi + AC_MSG_RESULT($BLDSHARED) AC_MSG_CHECKING([LDFLAGS]) @@ -6284,7 +6288,6 @@ if test $BLDSHARED = true -a x"$HAVE_WINBIND" = x"yes" -a x"$BUILD_LIBWBCLIENT_S INSTALL_LIBWBCLIENT=installlibwbclient UNINSTALL_LIBWBCLIENT=uninstalllibwbclient WINBIND_LIBS="-lwbclient" - LDFLAGS="$LDFLAGS -L./bin" else LIBWBCLIENT_STATIC=bin/libwbclient.a fi -- cgit