diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-01-29 18:37:50 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-02-15 08:49:34 +0100 |
commit | 76e9051acd4deefe609766026c4e444c34ceb694 (patch) | |
tree | b893c08d6c64af10faa590503ae708ee6602f0fb | |
parent | 99db4164bc1afa6803589b8a34b6295d020b1a8e (diff) | |
download | gtk+-wip/alexl/versioned-types-gtk2.tar.gz |
wip hacks to handle version symbolswip/alexl/versioned-types-gtk2
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | gdk/Makefile.am | 1 | ||||
-rw-r--r-- | gtk/Makefile.am | 1 | ||||
-rw-r--r-- | gtk/gtkmain.c | 2 |
4 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7ed414c4f0..dd15f82eee 100644 --- a/configure.ac +++ b/configure.ac @@ -395,7 +395,8 @@ PKG_CHECK_MODULES(GMODULE, [gmodule-2.0]) if test "$os_win32" != yes; then # libtool option to control which symbols are exported # right now, symbols starting with _ are not exported - LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"' + LIBTOOL_EXPORT_OPTIONS= + #'-export-symbols-regex "^[[^_]].*"' else # We currently use .def files on Windows (for gdk and gtk) LIBTOOL_EXPORT_OPTIONS= @@ -1591,6 +1592,9 @@ fi GOBJECT_INTROSPECTION_CHECK([0.9.3]) +GTK_VERSION_FLAGS="-Wl,--version-script=\$(top_srcdir)/gtk2.versions" +AC_SUBST(GTK_VERSION_FLAGS) + ################################################## # Checks for gtk-doc and docbook-tools ################################################## diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 4d606e0206..f70be0dce0 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -52,6 +52,7 @@ endif # we use the general approach here LDADD = \ $(GTK_LINK_FLAGS) \ + $(GTK_VERSION_FLAGS) \ -version-info $(LT_VERSION_INFO) \ -export-dynamic \ -rpath $(libdir) \ diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 9315919292..cf3a4f40f4 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -132,6 +132,7 @@ deps = # we use the general approach here libtool_opts = \ -version-info $(LT_VERSION_INFO) \ + $(GTK_VERSION_FLAGS) \ -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS) \ -rpath $(libdir) $(libgtk_target_ldflags) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 4fb791d91a..60594f3639 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -639,6 +639,8 @@ _gtk_module_has_mixed_deps (GModule *module_to_check) gpointer func; gboolean result; + return FALSE; + if (!module_to_check) module = g_module_open (NULL, 0); else |