You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
911 B

  1. commit 18c9cf7d3788a8f7408df45df92fc4ae3bcc0d80
  2. Author: Mike Pall <mike>
  3. Date: Sat Jan 25 17:37:12 2020 +0100
  4. Fix POSIX install with missing or incompatible ldconfig.
  5. --- a/Makefile
  6. +++ b/Makefile
  7. @@ -75,7 +75,7 @@ SYMLINK= ln -sf
  8. INSTALL_X= install -m 0755
  9. INSTALL_F= install -m 0644
  10. UNINSTALL= $(RM)
  11. -LDCONFIG= ldconfig -n
  12. +LDCONFIG= ldconfig -n 2>/dev/null
  13. SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|" \
  14. -e "s|^multilib=.*|multilib=$(MULTILIB)|"
  15. @@ -121,7 +121,7 @@ install: $(INSTALL_DEP)
  16. $(RM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2)
  17. cd src && test -f $(FILE_SO) && \
  18. $(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
  19. - $(LDCONFIG) $(INSTALL_LIB) && \
  20. + ( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
  21. $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
  22. $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
  23. cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)