[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [PATCH v3 2/2] Respect LDFLAGS when creating DLL
- From: Marvin Scholz <epirat07@...>
- Date: Wed, 10 Nov 2021 12:15:13 +0100
---
src/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile b/src/Makefile
index 4ba08f1..d32d587 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -131,7 +131,7 @@ Darwin macos macosx:
mingw:
$(MAKE) "LUA_A=lua54.dll" "LUA_T=lua.exe" "LUA_A_LINK=lua54.lib" \
- "AR=$(CC) -shared -Wl,--out-implib,lua54.lib -o" "RANLIB=strip --strip-unneeded" \
+ "AR=$(CC) -shared -Wl,--out-implib,lua54.lib $(LDFLAGS) -o" "RANLIB=strip --strip-unneeded" \
"SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
$(MAKE) "LUAC_T=luac.exe" luac.exe
--
2.33.0