Commit 45bf872a authored by Alexandre Julliard's avatar Alexandre Julliard

winegcc: Use Wine's msvcrt for Windows builds.

parent 9a364c1a
......@@ -972,11 +972,6 @@ static void build(struct options* opts)
/* add the default libraries, if needed */
if (!opts->nostdlib && opts->use_msvcrt && opts->target_platform != PLATFORM_WINDOWS)
{
if (!is_pe || !opts->shared) add_library(opts, lib_dirs, files, "msvcrt");
}
if (!opts->wine_objdir && !opts->nodefaultlibs)
{
if (opts->gui_app)
......@@ -991,6 +986,7 @@ static void build(struct options* opts)
if (!opts->nodefaultlibs)
{
if (opts->use_msvcrt) add_library(opts, lib_dirs, files, "msvcrt");
add_library(opts, lib_dirs, files, "winecrt0");
if (opts->win16_app) add_library(opts, lib_dirs, files, "kernel");
add_library(opts, lib_dirs, files, "kernel32");
......@@ -1108,7 +1104,7 @@ static void build(struct options* opts)
char *p = strrchr( lib, '/' );
*p++ = 0;
if (!strncmp( p, "lib", 3 ))
if (!strncmp( p, "lib", 3 ) && strcmp( p, "libmsvcrt.a" ))
{
char *ext = strrchr( p, '.' );
......
Markdown is supported
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