[PATCH] Do not silently and prematurely end install when ldconfig is missing

  • From: Tomáš Čech <tcech@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 25 Feb 2015 17:21:38 +0100

From: Tomáš Čech <sleep_walker@xxxxxxx>

---
 Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 343ecb5..915902f 100644
--- a/Makefile
+++ b/Makefile
@@ -112,9 +112,10 @@ install: $(INSTALL_DEP)
        $(RM) $(INSTALL_TSYM) $(INSTALL_DYN) $(INSTALL_SHORT1) $(INSTALL_SHORT2)
        cd src && test -f $(FILE_SO) && \
          $(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
-         $(LDCONFIG) $(INSTALL_LIB) && \
-         $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
-         $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
+         ( $(LDCONFIG) $(INSTALL_LIB) ; \
+           $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
+           $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || : \
+         )
        cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
        cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
          $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
-- 
2.3.0


Other related posts: