aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/luajit/001-fixStaticBuild.patch10
1 files changed, 8 insertions, 2 deletions
diff --git a/ports/luajit/001-fixStaticBuild.patch b/ports/luajit/001-fixStaticBuild.patch
index 11b6ea219..240a1beec 100644
--- a/ports/luajit/001-fixStaticBuild.patch
+++ b/ports/luajit/001-fixStaticBuild.patch
@@ -10,11 +10,17 @@ index bd0c4c5..1210fd2 100644
:NODEBUG
@if "%1"=="amalg" goto :AMALGDLL
@if "%1"=="static" goto :STATIC
-@@ -76,6 +77,7 @@ buildvm -m folddef -o lj_folddef.h lj_opt_fold.c
+-%LJCOMPILE% /MD /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
++@if "%DEBUG%"=="1" set LJCOMPILE=%LJCOMPILE% /MDd
++@if "%DEBUG%"=="" set LJCOMPILE=%LJCOMPILE% /MD
++%LJCOMPILE% /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
+ @if errorlevel 1 goto :BAD
+ %LJLINK% /DLL /out:%LJDLLNAME% lj_*.obj lib_*.obj
@if errorlevel 1 goto :BAD
@goto :MTDLL
:STATIC
+@if "%DEBUG%"=="1" set LJCOMPILE=%LJCOMPILE% /MTd
++@if "%DEBUG%"=="" set LJCOMPILE=%LJCOMPILE% /MT
%LJCOMPILE% lj_*.c lib_*.c
@if errorlevel 1 goto :BAD
- %LJLIB% /OUT:%LJLIBNAME% lj_*.obj lib_*.obj
+ %LJLIB% /OUT:%LJLIBNAME% lj_*.obj lib_*.obj \ No newline at end of file