summaryrefslogtreecommitdiff
blob: 53c5bd1a9cf8083eafc3a9b0cf3266792fc594b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru lua-5.1.1.orig/src/Makefile lua-5.1.1/src/Makefile
--- lua-5.1.1.orig/src/Makefile	2006-11-21 07:19:31 +0000
+++ lua-5.1.1/src/Makefile	2006-11-21 07:19:52 +0000
@@ -196,7 +196,7 @@
             -rpath $(RPATH) -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS)
 
 lua: $(LUA_O) $(LIB_NAME)
-	$(LIBTOOL) --mode=link $(CC) -Wl,-E -o $@ $(LUA_O) $(LUA_LIBS) -llua
+	$(LIBTOOL) --mode=link $(CC) -static -Wl,-E -o $@ $(LUA_O) $(LIB_NAME) $(LUA_LIBS)
 
 luac: $(LUAC_O) $(LIB_NAME)
 	$(LIBTOOL) --mode=link $(CC) -static -o $@ $(LUAC_O) $(LIB_NAME)