rendered paste bodydiff -urN lua-5.1.1/Makefile lua-5.1.1.new/Makefile
--- lua-5.1.1/Makefile 2006-06-02 12:53:38.000000000 +0200
+++ lua-5.1.1.new/Makefile 2006-09-09 14:54:20.000000000 +0200
@@ -51,6 +51,12 @@
all: $(PLAT)
+so:
+ mkdir -p lib
+ $(LD) -o lib/liblua.so.$V -shared -soname="liblua.so.$V" src/*.o
+ $(LD) -o lib/liblualib.so.$V -shared -soname="liblualib.so.$V" src/lib/*.o
+ cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
+
$(PLATS) clean:
cd src && $(MAKE) $@
diff -urN lua-5.1.1/src/Makefile lua-5.1.1.new/src/Makefile
--- lua-5.1.1/src/Makefile 2006-03-22 01:41:49.000000000 +0100
+++ lua-5.1.1.new/src/Makefile 2006-09-09 14:44:45.000000000 +0200
@@ -92,7 +92,7 @@
$(MAKE) all MYCFLAGS=
linux:
- $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
+ $(MAKE) all MYCFLAGS="$(MYCFLAGS) -DLUA_USE_LINUX" MYLIBS="$(MYLDFLAGS) -Wl,-E -ldl -lreadline -lhistory -lncurses"
macosx:
$(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX