dovecot-1.3: When using --disable-shared-libs, link with some un...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 17 04:40:13 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/922868605499
changeset: 9127:922868605499
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 16 21:40:05 2009 -0400
description:
When using --disable-shared-libs, link with some unused .o files to get plugins working.

diffstat:

3 files changed, 23 insertions(+), 3 deletions(-)
src/imap/Makefile.am |    8 +++++++-
src/lda/Makefile.am  |    9 ++++++++-
src/pop3/Makefile.am |    9 ++++++++-

diffs (63 lines):

diff -r 9ff1e79fffab -r 922868605499 src/imap/Makefile.am
--- a/src/imap/Makefile.am	Thu Apr 16 21:37:37 2009 -0400
+++ b/src/imap/Makefile.am	Thu Apr 16 21:40:05 2009 -0400
@@ -14,9 +14,15 @@ AM_CPPFLAGS = \
 
 imap_LDFLAGS = -export-dynamic
 
+if !BUILD_SHARED_LIBS
+unused_objects = \
+	../lib/mountpoint.o
+endif
+
 libs = \
 	$(LIBDOVECOT_STORAGE) \
-	$(LIBDOVECOT)
+	$(LIBDOVECOT) \
+	$(unused_objects)
 
 imap_LDADD = $(libs) $(MODULE_LIBS)
 imap_DEPENDENCIES = $(libs)
diff -r 9ff1e79fffab -r 922868605499 src/lda/Makefile.am
--- a/src/lda/Makefile.am	Thu Apr 16 21:37:37 2009 -0400
+++ b/src/lda/Makefile.am	Thu Apr 16 21:40:05 2009 -0400
@@ -17,10 +17,17 @@ AM_CPPFLAGS = \
 
 dovecot_lda_LDFLAGS = -export-dynamic
 
+if !BUILD_SHARED_LIBS
+unused_objects = \
+	../lib/mountpoint.o \
+	../lib-imap/imap-util.o
+endif
+
 libs = \
 	../lib-lda/liblda.a \
 	$(LIBDOVECOT_STORAGE) \
-	$(LIBDOVECOT)
+	$(LIBDOVECOT) \
+	$(unused_objects)
 
 dovecot_lda_LDADD = $(libs) $(MODULE_LIBS)
 
diff -r 9ff1e79fffab -r 922868605499 src/pop3/Makefile.am
--- a/src/pop3/Makefile.am	Thu Apr 16 21:37:37 2009 -0400
+++ b/src/pop3/Makefile.am	Thu Apr 16 21:40:05 2009 -0400
@@ -12,9 +12,16 @@ AM_CPPFLAGS = \
 
 pop3_LDFLAGS = -export-dynamic
 
+if !BUILD_SHARED_LIBS
+unused_objects = \
+	../lib/mountpoint.o \
+	../lib-imap/imap-util.o
+endif
+
 libs = \
 	$(LIBDOVECOT_STORAGE) \
-	$(LIBDOVECOT)
+	$(LIBDOVECOT) \
+	$(unused_objects)
 
 pop3_LDADD = $(libs) $(MODULE_LIBS)
 pop3_DEPENDENCIES = $(libs)


More information about the dovecot-cvs mailing list