Commit 20ce7c38 authored by Martin Storsjö's avatar Martin Storsjö Committed by Hugo Beauzée-Luyssen
Browse files

Link to ucrt/vcruntime140_app instead of msvcr120_app when targeting win10



Since July 2018, the latest master of mingw-w64 provides import libraries
for these CRT DLLs, which are suitable for use for UWP.
Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 0a0d1cce
......@@ -43,7 +43,8 @@ esac
case "$2" in
win10)
WINVER=0xA00
RUNTIME=msvcr120_app
RUNTIME=ucrt
RUNTIME_EXTRA='-lvcruntime140_app'
LIBKERNEL32='-lwindowsapp'
LIBLOLE32=
;;
......@@ -104,7 +105,7 @@ case "${1}" in
*)
COMPILER=${TARGET_TUPLE}-gcc
COMPILERXX=${TARGET_TUPLE}-g++
${COMPILER} -dumpspecs | sed -e "s/-lmingwex/-lwinstorecompat -lmingwex -lwinstorecompat $LIBLOLE32 -lruntimeobject -lsynchronization/" -e "s/-lmsvcrt/-l$RUNTIME/" -e "s/-lkernel32/$LIBKERNEL32/" > ../newspecfile
${COMPILER} -dumpspecs | sed -e "s/-lmingwex/-lwinstorecompat -lmingwex -lwinstorecompat $LIBLOLE32 -lruntimeobject -lsynchronization/" -e "s/-lmsvcrt/$RUNTIME_EXTRA -l$RUNTIME/" -e "s/-lkernel32/$LIBKERNEL32/" > ../newspecfile
NEWSPECFILE="`pwd`/../newspecfile"
COMPILER="${COMPILER} -specs=$NEWSPECFILE"
COMPILERXX="${COMPILERXX} -specs=$NEWSPECFILE"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment