summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.