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 <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2021-11-27 00:48:39 +01:00
parent 13fa0221bb
commit 69cfe50e48
1 changed files with 3 additions and 1 deletions

View File

@ -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