summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2015-02-16 20:53:36 +0000
committerDavid King <amigadave@amigadave.com>2015-02-16 21:05:19 +0000
commit0a83a6adc85c752d204e883a59d26a82d76312f1 (patch)
tree235414fb6bcc6b54a0da60918e21c0df53865f5a
parented61914b4978e89ff02265a10a7bb20484b6a7b7 (diff)
downloadyelp-0a83a6adc85c752d204e883a59d26a82d76312f1.tar.gz
Force libyelpcommon to be installed before libyelp
Libtool (specifically the Automake rules) has an unfortunate problem that it does not guarantee the install order of libraries if two Makefile variables are used, such as in the case of pkglib_LTLIBRARIES and lib_LTLIBRARIES. As libyelpcommon is a depdency of libyelp, it must be installed first. Force this by adding a dependency on install-pkglibLTLIBRARIES.
-rw-r--r--libyelp/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/libyelp/Makefile.am b/libyelp/Makefile.am
index ec37d29e..73efd41d 100644
--- a/libyelp/Makefile.am
+++ b/libyelp/Makefile.am
@@ -1,3 +1,8 @@
+# Libtool is utterly broken when it comes to ordering library dependencies.
+# Hack around this awfulness: https://lists.gnu.org/archive/html/libtool/2004-10/msg00051.html
+# As libyelp depends on libyelpcommon, force libyelpcommon to be installed
+# first.
+install-exec-am: install-pkglibLTLIBRARIES install-libLTLIBRARIES
pkglib_LTLIBRARIES = libyelpcommon.la
libyelpcommon_la_SOURCES = \