s3:build: link libtdb as shared lib if using shared libs at all
authorMichael Adam <obnox@samba.org>
Fri, 6 May 2011 14:43:31 +0000 (16:43 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 13 May 2011 14:42:24 +0000 (16:42 +0200)
source3/configure.in

index 11bea9d7aef2ca04c688ffa98695914dc34db994..e1e2d39acd75c61b4875a14a7651a5e442622bd7 100644 (file)
@@ -2150,7 +2150,9 @@ AC_SUBST(LIBTDB_OBJ0)
 if test "x$enable_external_libtdb" = xno
 then
        m4_include(../lib/tdb/libtdb.m4)
-       LINK_LIBTDB=STATIC
+       if test x"$USESHARED" == x"no" ; then
+               LINK_LIBTDB=STATIC
+       fi
        LIBTDBVERSION=`grep ^VERSION ${tdbdir}/wscript | sed -e "s/'//g" -e 's/.* //'`
        SMB_LIBRARY(tdb, 1, ${LIBTDBVERSION})
        LIBTDB_OBJ0=""