From 4d1af5802f8fcc3f0d2d9738b343d8e700c51fe7 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 19 Aug 2015 21:50:05 +0200 Subject: [PATCH] fix install in buildroot buildroot cross-compiles LuaJIT with various toolchain/libc. with some of them, the following error occurs at runtime: luajit: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory this fix creates two symbolic links: libluajit-5.1.so -> libluajit-5.1.so.2.0.3 libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.3 see current patch in Buildroot: http://git.buildroot.net/buildroot/tree/package/luajit/0003-install-so.patch Signed-off-by: Francois Perrad --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0cbe741a..f4518d19 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ INSTALL_PCNAME= luajit.pc INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME) INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME) INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT) -INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT) +INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT).$(MAJVER) INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME) INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME) INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)