]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Link with all the same unused .o files as lda.
authorTimo Sirainen <tss@iki.fi>
Thu, 29 Oct 2009 21:41:37 +0000 (17:41 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 29 Oct 2009 21:41:37 +0000 (17:41 -0400)
--HG--
branch : HEAD

src/lmtp/Makefile.am

index ffd45253c9e1909c112241394b1b49d44733d7a8..09e150f9f042740617a222f32dd61df368916096 100644 (file)
@@ -17,9 +17,17 @@ AM_CPPFLAGS = \
 
 lmtp_LDFLAGS = -export-dynamic
 
+if !BUILD_SHARED_LIBS
+unused_objects = \
+       ../lib/mountpoint.o \
+       ../lib-mail/message-header-encode.o \
+       ../lib-imap/imap-util.o
+endif
+
 libs = \
        ../lib-lda/liblda.a \
-       $(LIBDOVECOT_STORAGE)
+       $(LIBDOVECOT_STORAGE) \
+       $(unused_objects)
 
 lmtp_LDADD = $(libs) $(LIBDOVECOT) $(MODULE_LIBS)
 lmtp_DEPENDENCIES = $(libs) $(LIBDOVECOT_DEPS)