aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalessin <pgrabas@gmail.com>2017-07-22 10:05:36 +0200
committerKalessin <pgrabas@gmail.com>2017-07-22 10:05:36 +0200
commite8f681855c9890f1dc380274c6327511e417071c (patch)
tree27544e4bf326a5b1623765a1cc76004b7b63e8f8
parent56833bd4f5367b06970e5905c9687ff63724bc30 (diff)
downloadvcpkg-e8f681855c9890f1dc380274c6327511e417071c.tar.gz
vcpkg-e8f681855c9890f1dc380274c6327511e417071c.zip
link to debug runtime
-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