Files
MINGW-packages/mingw-w64-lua51/implib.patch
2015-03-21 03:28:42 +01:00

12 lines
452 B
Diff

--- src/Makefile.orig 2015-03-21 02:28:50.676835400 +0100
+++ src/Makefile 2015-03-21 02:30:35.989929400 +0100
@@ -105,7 +105,7 @@
mingw:
$(MAKE) "LUA_A=lua51.dll" "LUA_T=lua5.1.exe" \
- "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
+ "AR=$(CC) -shared -Wl,--out-implib=liblua5.1.dll.a -o" "RANLIB=strip --strip-unneeded" \
"MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua5.1.exe
$(MAKE) "LUAC_T=luac5.1.exe" luac5.1.exe