]> git.pld-linux.org Git - packages/lua51.git/blame - lua51-link.patch
- updated to 5.1.5
[packages/lua51.git] / lua51-link.patch
CommitLineData
8323cf76
JB
1--- lua-5.1.1/src/Makefile.orig 2006-03-22 01:41:49.000000000 +0100
2+++ lua-5.1.1/src/Makefile 2006-07-23 12:34:06.101649500 +0200
3@@ -39,23 +39,31 @@
4 ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
5 ALL_A= $(LUA_A)
6
7+V=5.1
8+
9 default: $(PLAT)
10
11-all: $(ALL_T)
12+all: so $(ALL_T)
13+
14+so: liblua.so
15
16 o: $(ALL_O)
17
18 a: $(ALL_A)
19
20+liblua.so: $(CORE_O) $(LIB_O)
21+ $(CC) -o liblua.so.$V -shared $(CORE_O) $(LIB_O) -Wl,-soname=liblua.so.$V -lm -ldl
22+ ln -sf liblua.so.$V liblua.so
23+
24 $(LUA_A): $(CORE_O) $(LIB_O)
06a459f8 25 $(AR) $@ $(CORE_O) $(LIB_O) # DLL needs all object files
8323cf76
JB
26 $(RANLIB) $@
27
28 $(LUA_T): $(LUA_O) $(LUA_A)
29- $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
30+ $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS)
31
32 $(LUAC_T): $(LUAC_O) $(LUA_A)
33- $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
34+ $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
35
36 clean:
37 $(RM) $(ALL_T) $(ALL_O)
This page took 0.077824 seconds and 4 git commands to generate.