aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-02-22 20:32:58 +0000
committerRoland McGrath <roland@gnu.org>2003-02-22 20:32:58 +0000
commitcc8bfce987bcc8ece8a193fc1a5ee3831dbe32c9 (patch)
tree6225851da30aa7d49e44b2a02b93e84db2ef97d6 /Makerules
parent92cc462ceaf6736e7e55850cd2f890bcd3720baf (diff)
downloadglibc-cc8bfce987bcc8ece8a193fc1a5ee3831dbe32c9.zip
glibc-cc8bfce987bcc8ece8a193fc1a5ee3831dbe32c9.tar.gz
glibc-cc8bfce987bcc8ece8a193fc1a5ee3831dbe32c9.tar.bz2
* Makerules (install-lib-nosubdir): Depend on installed
libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed regardless of the libfoo.so target's dependencies.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index ef608c2..a99d566 100644
--- a/Makerules
+++ b/Makerules
@@ -872,8 +872,15 @@ versioned := $(strip $(foreach so,$(install-lib.so),\
install-lib.so-versioned := $(filter $(versioned), $(install-lib.so))
install-lib.so-unversioned := $(filter-out $(versioned), $(install-lib.so))
-install-lib-nosubdir: $(install-lib.so-versioned:%=$(inst_libdir)/%) \
- $(install-lib.so-unversioned:%=$(inst_slibdir)/%)
+# For versioned libraries, we install three files:
+# $(inst_libdir)/libfoo.so -- for linking, symlink or ld script
+# $(inst_slibdir)/libfoo.so.NN -- for loading by SONAME, symlink
+# $(inst_slibdir)/libfoo-X.Y.Z.so -- the real shared object file
+install-lib-nosubdir: $(install-lib.so-unversioned:%=$(inst_slibdir)/%) \
+ $(foreach L,$(install-lib.so-versioned),\
+ $(inst_libdir)/$L \
+ $(inst_slibdir)/$(L:.so=)-$(version).so \
+ $(inst_slibdir)/$L$($L-version))
# Install all the unversioned shared libraries.
$(install-lib.so-unversioned:%=$(inst_slibdir)/%): $(inst_slibdir)/%.so: \