Fix POSIX install with missing or incompatible ldconfig.

This commit is contained in:
Mike Pall 2020-01-25 17:37:12 +01:00
parent 62903bacf4
commit 18c9cf7d37

View File

@ -74,7 +74,7 @@ SYMLINK= ln -sf
INSTALL_X= install -m 0755 INSTALL_X= install -m 0755
INSTALL_F= install -m 0644 INSTALL_F= install -m 0644
UNINSTALL= $(RM) UNINSTALL= $(RM)
LDCONFIG= ldconfig -n LDCONFIG= ldconfig -n 2>/dev/null
SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|" \ SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|" \
-e "s|^multilib=.*|multilib=$(MULTILIB)|" -e "s|^multilib=.*|multilib=$(MULTILIB)|"
@ -118,7 +118,7 @@ install: $(INSTALL_DEP)
$(RM) $(INSTALL_TSYM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2) $(RM) $(INSTALL_TSYM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2)
cd src && test -f $(FILE_SO) && \ cd src && test -f $(FILE_SO) && \
$(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \ $(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
$(LDCONFIG) $(INSTALL_LIB) && \ ( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || : $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN) cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)