[shotwell/wip/autotools: 16/27] build: Make plugins .so only



commit c243239cf5991d3914fee71227094abb94563885
Author: Jens Georg <mail jensge org>
Date:   Tue Jun 28 21:24:53 2016 +0200

    build: Make plugins .so only
    
    Signed-off-by: Jens Georg <mail jensge org>

 Makefile.am      |    6 ++++++
 import.am        |    3 ++-
 publish-extra.am |    2 +-
 publish.am       |    3 ++-
 transition.am    |    3 ++-
 5 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 76707e9..6c01084 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,6 +80,12 @@ src_plugins_libplugin_la_VALAFLAGS = \
        --header=plugins/shotwell-plugin-dev-1.0.h
 
 src_plugins_libplugin_la_CFLAGS = $(PLUGIN_CFLAGS)
+SHOTWELL_PLUGIN_LDFLAGS = \
+       -no-undefined \
+       -module \
+       -shared \
+       -export_dynamic \
+       -avoid-version
 
 -include $(top_srcdir)/git.mk
 
diff --git a/import.am b/import.am
index 07f8d70..0d65521 100644
--- a/import.am
+++ b/import.am
@@ -36,7 +36,8 @@ plugins_shotwell_data_imports_libshotwell_data_imports_la_CFLAGS = \
        $(COMMON_CFLAGS) \
        -I $(top_srcdir)/plugins
 
-plugins_shotwell_data_imports_libshotwell_data_imports_la_LDFLAGS = -Wno-undefined
+plugins_shotwell_data_imports_libshotwell_data_imports_la_LDFLAGS = \
+       $(SHOTWELL_PLUGIN_LDFLAGS)
 
 plugins_shotwell_data_imports_libshotwell_data_imports_la_LIBADD = \
        $(top_builddir)/plugins/common/libshotwell-plugin-common.la
diff --git a/publish-extra.am b/publish-extra.am
index d80972a..b098eb9 100644
--- a/publish-extra.am
+++ b/publish-extra.am
@@ -28,7 +28,7 @@ plugins_shotwell_publishing_extras_libshotwell_publishing_extras_la_CFLAGS = \
        -I $(top_srcdir)/plugins
 
 plugins_shotwell_publishing_extras_libshotwell_publishing_extras_la_LDFLAGS = \
-       -Wno-undefined
+       $(SHOTWELL_PLUGIN_LDFLAGS)
 
 plugins_shotwell_publishing_extras_libshotwell_publishing_extras_la_LIBADD = \
        $(top_builddir)/plugins/common/libshotwell-plugin-common.la
diff --git a/publish.am b/publish.am
index bb91c35..6bf705f 100644
--- a/publish.am
+++ b/publish.am
@@ -27,7 +27,8 @@ plugins_shotwell_publishing_libshotwell_publishing_la_CFLAGS = \
        $(COMMON_CFLAGS) \
        -I $(top_srcdir)/plugins
 
-plugins_shotwell_publishing_libshotwell_publishing_la_LDFLAGS = -Wno-undefined
+plugins_shotwell_publishing_libshotwell_publishing_la_LDFLAGS = \
+       $(SHOTWELL_PLUGIN_LDFLAGS)
 
 plugins_shotwell_publishing_libshotwell_publishing_la_LIBADD = \
        $(top_builddir)/plugins/common/libshotwell-plugin-common.la
diff --git a/transition.am b/transition.am
index ada4a68..3326810 100644
--- a/transition.am
+++ b/transition.am
@@ -32,7 +32,8 @@ plugins_shotwell_transitions_libshotwell_transitions_la_CFLAGS = \
        $(COMMON_CFLAGS) \
        -I $(top_srcdir)/plugins
 
-plugins_shotwell_transitions_libshotwell_transitions_la_LDFLAGS = -Wno-undefined
+plugins_shotwell_transitions_libshotwell_transitions_la_LDFLAGS = \
+       $(SHOTWELL_PLUGIN_LDFLAGS)
 
 plugins_shotwell_transitions_libshotwell_transitions_la_LIBADD = \
        $(top_builddir)/plugins/common/libshotwell-plugin-common.la


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]