evolution/evolution-2.27.2-fix-shared-mail.patch

86 lines
2.6 KiB
Diff
Raw Normal View History

diff -up evolution-2.27.2/mail/Makefile.am.fix-shared-mail evolution-2.27.2/mail/Makefile.am
--- evolution-2.27.2/mail/Makefile.am.fix-shared-mail 2009-05-24 13:35:00.000000000 -0400
2009-05-29 18:56:37 +00:00
+++ evolution-2.27.2/mail/Makefile.am 2009-05-29 14:34:24.000000000 -0400
@@ -31,9 +31,8 @@ INCLUDES = \
-DPREFIX=\""$(prefix)"\" \
-DG_LOG_DOMAIN=\"evolution-mail\"
-component_LTLIBRARIES = libevolution-mail-shared.la \
- libevolution-mail.la
-
+privsolib_LTLIBRARIES = libevolution-mail-shared.la
+component_LTLIBRARIES = libevolution-mail.la
# Mail.idl
MAIL_IDL = Evolution-Mail.idl
2009-05-29 18:56:37 +00:00
@@ -148,7 +147,6 @@ SMIME_LIBS = \
$(top_builddir)/smime/gui/libevolution-smime.la
endif
-
libevolution_mail_la_LIBADD = \
$(top_builddir)/mail/libevolution-mail-shared.la \
$(top_builddir)/e-util/libeutil.la \
@@ -172,11 +170,11 @@ libevolution_mail_la_LIBADD = \
libevolution_mail_la_LDFLAGS = \
-avoid-version -module $(NO_UNDEFINED)
-libevolution_mail_la_DEPENDENCIES = em-filter-i18n.h
-
-# .server files
+libevolution_mail_la_DEPENDENCIES = \
+ em-filter-i18n.h \
+ libevolution-mail-shared.la
2009-05-29 18:56:37 +00:00
-libevolution_mail_shared_la_SOURCES = \
+libevolution_mail_shared_la_SOURCES = \
em-account-editor.c \
2009-05-29 18:56:37 +00:00
em-account-editor.h \
em-event.c \
@@ -238,12 +236,7 @@ libevolution_mail_shared_la_SOURCES =
message-tag-followup.c \
message-tag-followup.h
-
-
-
-
-
-libevolution_mail_shared_la_LIBADD = \
+libevolution_mail_shared_la_LIBADD = \
$(top_builddir)/e-util/libeutil.la \
$(top_builddir)/widgets/misc/libemiscwidgets.la \
$(top_builddir)/composer/libcomposer.la \
@@ -252,10 +245,29 @@ libevolution_mail_shared_la_LIBADD =
$(SMIME_LIBS) \
$(THREADS_LIBS)
-libevolution_mail_shared_la_LDFLAGS = \
- -avoid-version -module $(NO_UNDEFINED)
+libevolution_mail_shared_la_LDFLAGS = $(NO_UNDEFINED)
2009-05-29 18:56:37 +00:00
+# --- BIG NASTY AUTOMAKE HACK ---
+#
+# Automake apparently sorts Makefile.am rules alphabetically. And
+# since component_LTLIBRARIES < privsolib_LTLIBRARIES, it tries to
+# install libevolution-mail.la before libevolution-mail-shared.la,
+# which fails when libtool tries to relink libevolution-mail.la
+# against the not-yet-installed libevolution-mail-shared.la.
+install-data-am: \
+ install-privsolibLTLIBRARIES \
+ install-componentLTLIBRARIES \
+ install-data-local \
+ install-errorDATA \
+ install-etspecDATA \
+ install-filterDATA \
+ install-gladeDATA \
+ install-idlDATA \
+ install-mailincludeHEADERS \
+ install-schemaDATA \
+ install-serverDATA
+# .server files
server_in_files = GNOME_Evolution_Mail.server.in.in
server_DATA = $(server_in_files:.server.in.in=.server)