Add -L./bin to LDFLAGS when building shared libs.
authorMichael Adam <obnox@samba.org>
Wed, 13 Feb 2008 12:48:00 +0000 (13:48 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 13 Feb 2008 12:48:51 +0000 (13:48 +0100)
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

source/configure.in

index f3187aa9151da8b9db8fe669779d4d6832cc1cf1..cde3c0b76ed9a0fb63a748f8a0ba4353673db8bd 100644 (file)
@@ -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