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 <francois.perrad@gadz.org>
This commit is contained in:
Francois Perrad 2015-08-19 21:50:05 +02:00
parent a5b1c4d98e
commit 4d1af5802f

View File

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