summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2011-10-20 15:47:00 +0200
committerThomas Schwinge <thomas@schwinge.name>2011-10-20 19:20:21 +0200
commit3aa7bb4849945c7480873567767db3face604260 (patch)
tree632df4d2956bba8963b9b644a10059da7ba60ce3 /Makeconf
parent127352671f6dca8572a8d310b162ccff32463ec5 (diff)
Populate a [build]/lib directory with links to all shared libraries.
* Makeconf (libs): Add dependency to create these links.
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makeconf b/Makeconf
index 5e33e15b..49375fba 100644
--- a/Makeconf
+++ b/Makeconf
@@ -273,6 +273,15 @@ $(libdir)/$(libname).so: $(libdir)/$(libname).so.$(hurd-version)
$(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)): $(includedir)/$(installhdrsubdir)/%: %
$(INSTALL_DATA) $< $@
+# Arrange to have the shared libraries available locally in one single
+# directory. This is not used by the build system itself, but is just for easy
+# testing.
+local-libdir = lib
+../$(local-libdir)/$(libname).so.$(hurd-version): $(libname).so.$(hurd-version)
+ @test -d $(@D)/ || $(MKINSTALLDIRS) $(@D)
+ ln -sf ../$(dir)/$< $@
+libs: ../$(local-libdir)/$(libname).so.$(hurd-version)
+
endif
# Provide default.