summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-06-22 15:33:41 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-06-23 12:58:35 -0400
commit0ccd18bc83c5e6eff77940a61cc9b31a88dd1851 (patch)
tree8cfcbfd91d7351776d90cfd6ad2a8003ce83717d /gmodule
parent7662c86611bf44175f18ec6eb66f159040ac73c5 (diff)
Bug 586675 – Runtime library location
Introduce an option to specify the runtime location for libraries via a relative path to libdir. Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/gmodule/Makefile.am b/gmodule/Makefile.am
index 80a5605b6..f0e63d1ab 100644
--- a/gmodule/Makefile.am
+++ b/gmodule/Makefile.am
@@ -116,3 +116,12 @@ dist-hook: $(BUILT_EXTRA_DIST)
install-data-local: install-ms-lib install-def-file
uninstall-local: uninstall-ms-lib uninstall-def-file
+
+if HAVE_GLIB_RUNTIME_LIBDIR
+install-data-hook:
+ mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
+ mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
+ mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0.$(LT_CURRENT).0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
+ rm -f $(DESTDIR)$(libdir)/libgmodule-2.0.so
+ ln -s $(GLIB_RUNTIME_LIBDIR)/libgmodule-2.0.so.0.$(LT_CURRENT).0 $(DESTDIR)$(libdir)/libgmodule-2.0.so
+endif