[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5.1 build patch
- From: Mark Edgar <medgar@...>
- Date: Thu, 12 Jan 2006 14:53:45 -0700
The attached patch allows Lua to be built on a Cygwin host targetting MinGW:
make "CC=gcc -mno-cygwin" mingw # build MinGW version
-Mark
--- lua-5.1-orig/src/Makefile 2006-01-11 16:49:05.000000000 -0700
+++ lua-5.1/src/Makefile 2006-01-12 14:41:16.531250000 -0700
@@ -97,5 +97,5 @@
mingw:
$(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
- "AR=gcc -shared -o" "RANLIB=strip --strip-unneeded" \
+ "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
"MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe