updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / lua-c++ / lua-arch.patch
blob7d6d3316d99a9d6fadfb98e348c886ce9af95ef2
1 diff -ur lua-5.1.orig/etc/lua.pc lua-5.1/etc/lua.pc
2 --- lua-5.1.orig/etc/lua.pc 2006-03-21 11:51:53.000000000 +0100
3 +++ lua-5.1/etc/lua.pc 2006-03-21 11:52:05.000000000 +0100
4 @@ -6,7 +6,7 @@
5 V= 5.1
7 # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
8 -prefix= /usr/local
9 +prefix= /usr
10 INSTALL_BIN= ${prefix}/bin
11 INSTALL_INC= ${prefix}/include
12 INSTALL_LIB= ${prefix}/lib
13 diff -ur lua-5.1.orig/src/Makefile lua-5.1/src/Makefile
14 --- lua-5.1.orig/src/Makefile 2006-03-21 11:51:53.000000000 +0100
15 +++ lua-5.1/src/Makefile 2006-03-21 11:52:09.000000000 +0100
16 @@ -23,6 +23,7 @@
17 PLATS= aix ansi bsd generic linux macosx mingw posix solaris
19 LUA_A= liblua.a
20 +LUA_SO= liblua.so
21 CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
22 lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
23 lundump.o lvm.o lzio.o
24 @@ -36,7 +37,7 @@
25 LUAC_O= luac.o print.o
27 ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
28 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
29 +ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T)
30 ALL_A= $(LUA_A)
32 default: $(PLAT)
33 @@ -51,6 +52,10 @@
34 $(AR) $@ $?
35 $(RANLIB) $@
37 +$(LUA_SO): $(CORE_O) $(LIB_O)
38 + $(CC) -shared -ldl -Wl,-soname,liblua.so -o $@.5.1 $? $(MYLDFLAGS)
39 + ln -s $@.5.1 $@
41 $(LUA_T): $(LUA_O) $(LUA_A)
42 $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
44 diff -ur lua-5.1.orig/src/luaconf.h lua-5.1/src/luaconf.h
45 --- lua-5.1.orig/src/luaconf.h 2006-03-21 11:51:53.000000000 +0100
46 +++ lua-5.1/src/luaconf.h 2006-03-21 11:52:05.000000000 +0100
47 @@ -82,7 +82,7 @@
48 ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
50 #else
51 -#define LUA_ROOT "/usr/local/"
52 +#define LUA_ROOT "/usr/"
53 #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
54 #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
55 #define LUA_PATH_DEFAULT \