]> git.pld-linux.org Git - packages/lua53.git/blame - lua52-link.patch
- updated to 5.2.2
[packages/lua53.git] / lua52-link.patch
CommitLineData
e824b0ab
JB
1--- lua-5.2.1/src/Makefile.orig 2012-03-09 17:32:16.000000000 +0100
2+++ lua-5.2.1/src/Makefile 2012-06-25 20:20:17.372198014 +0200
3@@ -46,24 +46,32 @@
4 ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
5 ALL_A= $(LUA_A)
6
7+V=5.2
8+
9 # Targets start here.
10 default: $(PLAT)
11
12-all: $(ALL_T)
13+all: so $(ALL_T)
14+
15+so: liblua.so
16
17 o: $(ALL_O)
18
19 a: $(ALL_A)
20
21+liblua.so: $(BASE_O)
22+ $(CC) -o liblua.so.$V -shared $(BASE_O) -Wl,-soname=liblua.so.$V -lm -ldl
23+ ln -sf liblua.so.$V liblua.so
24+
25 $(LUA_A): $(BASE_O)
26 $(AR) $@ $(BASE_O)
27 $(RANLIB) $@
28
29 $(LUA_T): $(LUA_O) $(LUA_A)
30- $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
31+ $(CC) -o $@ $(LDFLAGS) $(LUA_O) -L. -llua $(LIBS)
32
33 $(LUAC_T): $(LUAC_O) $(LUA_A)
34- $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
35+ $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
36
37 clean:
38 $(RM) $(ALL_T) $(ALL_O)
This page took 0.064721 seconds and 4 git commands to generate.