From 69cfe50e48008312939a573574bf4aadd45f3758 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Sat, 27 Nov 2021 00:48:39 +0100 Subject: [PATCH] install: Fix installation of shared libraries with links When we generate multiple files, install the correct one first before linking. Otherwise, the final install step is confused and one of the files ends up missing (overwritten). Signed-off-by: Christophe de Dinechin --- config.gnu.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.gnu.mk b/config.gnu.mk index 8d98ee0..5d502eb 100644 --- a/config.gnu.mk +++ b/config.gnu.mk @@ -180,7 +180,9 @@ LINK.dll= $(LD) -shared $(MIQ_LINKARGS) $(MIQ_LDFLAGS) \ -o $(OUTPUT)$(MIQ_DLLNAME) \ $(MIQ_SONAME_OPT) \ && (cd $(OUTPUT) $(MIQ_SYMLINKS)) -INSTALL.dll= (cd $(PACKAGE_INSTALL.dll) $(MIQ_SYMLINKS)) && $(INSTALL) +INSTALL.dll= ($(INSTALL) $(MIQ_DLLNAME) $(PACKAGE_INSTALL.dll) && \ + cd $(PACKAGE_INSTALL.dll) $(MIQ_SYMLINKS)) && \ + true LINK.exe= $(LD) $(MIQ_LINKARGS) $(MIQ_LDFLAGS) -o $@ endif