summaryrefslogtreecommitdiffstats
path: root/package/lua/5.2.3/lua-02-shared-libs-for-lua.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-02-26 11:03:15 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-02-26 17:22:04 +0100
commit179266d292b483b9bb1fe847b7d5b191d751b643 (patch)
tree7e0401f1a573a0b72da392e807b2900c5a90790f /package/lua/5.2.3/lua-02-shared-libs-for-lua.patch
parent0127a1cc5a688d2acb8969bd692e5de1765999e1 (diff)
downloadbuildroot-179266d292b483b9bb1fe847b7d5b191d751b643.tar.gz
buildroot-179266d292b483b9bb1fe847b7d5b191d751b643.zip
lua: refactor install steps
since the comeback of version in module path (see commit ccd68a51) the upstream Makefiles are usable for install. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/lua/5.2.3/lua-02-shared-libs-for-lua.patch')
-rw-r--r--package/lua/5.2.3/lua-02-shared-libs-for-lua.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/lua/5.2.3/lua-02-shared-libs-for-lua.patch b/package/lua/5.2.3/lua-02-shared-libs-for-lua.patch
index 4679325e79..cd8a5bf8e1 100644
--- a/package/lua/5.2.3/lua-02-shared-libs-for-lua.patch
+++ b/package/lua/5.2.3/lua-02-shared-libs-for-lua.patch
@@ -1,8 +1,30 @@
Add the compilation of a shared library.
Compile the lua binary with the shared library.
+And install the shared library.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+Index: b/Makefile
+===================================================================
+--- a/Makefile
++++ b/Makefile
+@@ -42,6 +42,7 @@
+ TO_BIN= lua luac
+ TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
+ TO_LIB= liblua.a
++TO_SOLIB = liblua.so.$(R)
+ TO_MAN= lua.1 luac.1
+
+ # Lua version and release.
+@@ -60,6 +61,8 @@
+ install: dummy
+ cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
+ cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
++ cd src && $(INSTALL_EXEC) $(TO_SOLIB) $(INSTALL_LIB)
++ ln -sf $(TO_SOLIB) $(INSTALL_LIB)/liblua.so
+ cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
+ cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
+ cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
Index: b/src/Makefile
===================================================================
--- a/src/Makefile
OpenPOWER on IntegriCloud