From: Timo Sirainen Date: Fri, 4 Jun 2010 17:51:05 +0000 (+0100) Subject: dsync: Fixed loading plugins when built --without-shared-libs X-Git-Tag: 2.0.beta6~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58b457961e31cbfbe3319eb8012e54c8ad2d8455;p=thirdparty%2Fdovecot%2Fcore.git dsync: Fixed loading plugins when built --without-shared-libs --HG-- branch : HEAD --- diff --git a/src/dsync/Makefile.am b/src/dsync/Makefile.am index 71f6f22a0d..59edb45721 100644 --- a/src/dsync/Makefile.am +++ b/src/dsync/Makefile.am @@ -10,8 +10,17 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/lib-index \ -I$(top_srcdir)/src/lib-storage -dsync_LDADD = $(LIBDOVECOT_STORAGE) $(LIBDOVECOT) $(MODULE_LIBS) -dsync_DEPENDENCIES = $(LIBDOVECOT_STORAGE) $(LIBDOVECOT_DEPS) +if !BUILD_SHARED_LIBS +unused_objects = \ + ../lib/mountpoint.o +endif + +libs = \ + $(LIBDOVECOT_STORAGE) \ + $(unused_objects) + +dsync_LDADD = $(libs) $(LIBDOVECOT) $(MODULE_LIBS) +dsync_DEPENDENCIES = $(libs) $(LIBDOVECOT_DEPS) dsync_SOURCES = \ dsync.c \ dsync-brain.c \