From 3aa7bb4849945c7480873567767db3face604260 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 20 Oct 2011 15:47:00 +0200 Subject: Populate a [build]/lib directory with links to all shared libraries. * Makeconf (libs): Add dependency to create these links. --- Makeconf | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- cgit v1.2.3