summaryrefslogtreecommitdiffstats
path: root/lua/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-10-12 15:28:55 +0000
committer Eric Hameleers <alien@slackware.com>2015-10-12 15:28:55 +0000
commit94c3f321d0388d582e2af44c4a786c1f8e7e596b (patch)
tree479e944adc9096b7b16f90a17607b2d4af0f0066 /lua/build
parenta41d0945bcc9acf9a6bafda75ded8b19e570656e (diff)
downloadasb-94c3f321d0388d582e2af44c4a786c1f8e7e596b.tar.gz
asb-94c3f321d0388d582e2af44c4a786c1f8e7e596b.tar.xz
lua: updated lua-5.1.5-shared.diff creates the missing liblua.so symlink
Diffstat (limited to 'lua/build')
-rw-r--r--lua/build/lua-5.1.5-shared.diff11
1 files changed, 6 insertions, 5 deletions
diff --git a/lua/build/lua-5.1.5-shared.diff b/lua/build/lua-5.1.5-shared.diff
index 7646fdaf..8cb93afe 100644
--- a/lua/build/lua-5.1.5-shared.diff
+++ b/lua/build/lua-5.1.5-shared.diff
@@ -1,6 +1,6 @@
diff -uar lua-5.1.5.orig/Makefile lua-5.1.5/Makefile
--- lua-5.1.5.orig/Makefile 2012-02-10 10:50:23.000000000 +0100
-+++ lua-5.1.5/Makefile 2013-10-15 16:24:23.783864677 +0200
++++ lua-5.1.5/Makefile 2015-10-12 17:12:23.982138572 +0200
@@ -43,7 +43,7 @@
# What to install.
TO_BIN= lua luac
@@ -12,7 +12,7 @@ diff -uar lua-5.1.5.orig/Makefile lua-5.1.5/Makefile
# Lua version and release.
diff -uar lua-5.1.5.orig/src/Makefile lua-5.1.5/src/Makefile
--- lua-5.1.5.orig/src/Makefile 2012-02-13 21:41:22.000000000 +0100
-+++ lua-5.1.5/src/Makefile 2013-10-15 16:28:06.251465201 +0200
++++ lua-5.1.5/src/Makefile 2015-10-12 17:23:07.754974269 +0200
@@ -18,11 +18,17 @@
MYLDFLAGS=
MYLIBS=
@@ -42,7 +42,7 @@ diff -uar lua-5.1.5.orig/src/Makefile lua-5.1.5/src/Makefile
default: $(PLAT)
-@@ -47,10 +54,17 @@
+@@ -47,10 +54,18 @@
a: $(ALL_A)
@@ -55,17 +55,18 @@ diff -uar lua-5.1.5.orig/src/Makefile lua-5.1.5/src/Makefile
+$(LUA_S): $(CORE_O) $(LIB_O)
+ $(CC) -shared -fPIC -Wl,-soname -Wl,$(LUA_S).$(MAJOR) \
+ -o $(LUA_S).$(MAJOR).$(MINOR).$(REL) $^ $(LIBS)
++ ln -s $(LUA_S).$(MAJOR).$(MINOR).$(REL) $(LUA_S).$(MAJOR)
+ ln -s $(LUA_S).$(MAJOR).$(MINOR).$(REL) $(LUA_S)
+
$(LUA_T): $(LUA_O) $(LUA_A)
$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
-@@ -58,7 +72,7 @@
+@@ -58,7 +73,7 @@
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
clean:
- $(RM) $(ALL_T) $(ALL_O)
-+ $(RM) $(ALL_T) $(ALL_O) $(LUA_S) $(LUA_S).$(MAJOR).$(MINOR).$(REL)
++ $(RM) $(ALL_T) $(ALL_O) $(LUA_S) $(LUA_S).$(MAJOR) $(LUA_S).$(MAJOR).$(MINOR).$(REL)
depend:
@$(CC) $(CFLAGS) -MM l*.c print.c