summaryrefslogtreecommitdiff
path: root/lua52/lua.diff
blob: 92c1f3ac48bf2c2f53e87e3fa4e71b04e0c3ff25 (plain)
    1 diff -ru lua-5.2.1/Makefile lua-5.2.1.new/Makefile
    2 --- lua-5.2.1/Makefile	2012-05-17 16:05:54.000000000 +0200
    3 +++ lua-5.2.1.new/Makefile	2012-09-12 22:39:07.162748096 +0200
    4 @@ -52,7 +52,7 @@
    5  all:	$(PLAT)
    6  
    7  $(PLATS) clean:
    8 -	cd src && $(MAKE) $@
    9 +	cd src && $(MAKE) $@ V=$(V) R=$(R)
   10  
   11  test:	dummy
   12  	src/lua -v
   13 diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.new/src/luaconf.h
   14 --- lua-5.2.1/src/luaconf.h	2012-05-11 16:14:42.000000000 +0200
   15 +++ lua-5.2.1.new/src/luaconf.h	2012-09-12 22:40:27.986622772 +0200
   16 @@ -100,7 +100,7 @@
   17  #else			/* }{ */
   18  
   19  #define LUA_VDIR	LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
   20 -#define LUA_ROOT	"/usr/local/"
   21 +#define LUA_ROOT	"/usr/"
   22  #define LUA_LDIR	LUA_ROOT "share/lua/" LUA_VDIR
   23  #define LUA_CDIR	LUA_ROOT "lib/lua/" LUA_VDIR
   24  #define LUA_PATH_DEFAULT  \
   25 diff -ru lua-5.2.1/src/Makefile lua-5.2.1.new/src/Makefile
   26 --- lua-5.2.1/src/Makefile	2012-03-09 17:32:16.000000000 +0100
   27 +++ lua-5.2.1.new/src/Makefile	2012-09-12 22:38:08.591386896 +0200
   28 @@ -29,6 +29,7 @@
   29  PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
   30  
   31  LUA_A=	liblua.a
   32 +LUA_SO= liblua.so
   33  CORE_O=	lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
   34  	lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \
   35  	ltm.o lundump.o lvm.o lzio.o
   36 @@ -43,7 +44,7 @@
   37  LUAC_O=	luac.o
   38  
   39  ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
   40 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
   41 +ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
   42  ALL_A= $(LUA_A)
   43  
   44  # Targets start here.
   45 @@ -59,6 +60,12 @@
   46  	$(AR) $@ $(BASE_O)
   47  	$(RANLIB) $@
   48  
   49 +$(LUA_SO): $(CORE_O) $(LIB_O)
   50 +	$(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
   51 +	ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
   52 +	ln -sf $(LUA_SO).$(R) $(LUA_SO)
   53 +
   54 +
   55  $(LUA_T): $(LUA_O) $(LUA_A)
   56  	$(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
   57  

Generated by cgit