File claws-mail-extra-plugins-libytnef_shlib.patch of Package claws-mail-extra-plugins
Index: claws-mail-extra-plugins-3.7.6/tnef_parse-0.3.9/src/Makefile.am
===================================================================
--- claws-mail-extra-plugins-3.7.6.orig/tnef_parse-0.3.9/src/Makefile.am
+++ claws-mail-extra-plugins-3.7.6/tnef_parse-0.3.9/src/Makefile.am
@@ -45,13 +45,27 @@ plugindir = $(CLAWS_MAIL_PLUGINDIR)
plugin_LTLIBRARIES = tnef_parse.la
+lib_LTLIBRARIES = libytnef.la
+libytnef_la_SOURCES = ytnef.c
+
+include_HEADERS = \
+ mapi.h \
+ mapidefs.h \
+ mapitags.h \
+ tnef-errors.h \
+ tnef-types.h \
+ ytnef.h
+
+# set explicit soname
+libytnef_la_LDFLAGS = $(all_libraries) -version-info 0:0:0
+
tnef_parse_la_SOURCES = \
tnef_parse.c \
tnef_dump.c \
tnef_dump.h \
- ytnef.c \
gettext.h
+tnef_parse_la_LIBADD = libytnef.la
tnef_parse_la_LDFLAGS = \
$(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
-avoid-version -module \
@@ -63,13 +77,7 @@ tnef_parse_la_LIBADD = $(plugin_ldadd) $
$(GTK_LIBS)
noinst_HEADERS = \
- mapidefs.h \
- mapi.h \
- mapitags.h \
- tnef_dump.h \
- tnef-errors.h \
- tnef-types.h \
- ytnef.h
+ tnef_dump.h
INCLUDES = \
-I$(top_srcdir)/src \