]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed loading plugins when built --without-shared-libs
authorTimo Sirainen <tss@iki.fi>
Fri, 4 Jun 2010 17:51:05 +0000 (18:51 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 4 Jun 2010 17:51:05 +0000 (18:51 +0100)
--HG--
branch : HEAD

src/dsync/Makefile.am

index 71f6f22a0d82a7903bdb4a75f51e1bae1d67d6d4..59edb4572191530e3e022d532a0afa837e8f2ca1 100644 (file)
@@ -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 \