Alexandre Julliard : makefiles: Don't add default libs for msvcrt builds.
Alexandre Julliard
julliard at winehq.org
Thu Apr 2 14:27:36 CDT 2020
Module: wine
Branch: master
Commit: 5603ece70d66d20826066d4439a54439faa78c6c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5603ece70d66d20826066d4439a54439faa78c6c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Apr 2 11:31:33 2020 +0200
makefiles: Don't add default libs for msvcrt builds.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/makedep.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index 061d8c6572..9b64f0fed4 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -2148,9 +2148,12 @@ static struct strarray add_default_libraries( const struct makefile *make, struc
struct strarray all_libs = empty_strarray;
unsigned int i, j;
- if (!make->use_msvcrt) strarray_add( &all_libs, "-lwine_port" );
- strarray_addall( &all_libs, get_expanded_make_var_array( make, "EXTRALIBS" ));
- strarray_addall( &all_libs, libs );
+ if (!make->use_msvcrt)
+ {
+ strarray_add( &all_libs, "-lwine_port" );
+ strarray_addall( &all_libs, get_expanded_make_var_array( make, "EXTRALIBS" ));
+ strarray_addall( &all_libs, libs );
+ }
for (i = 0; i < all_libs.count; i++)
{
@@ -2999,7 +3002,6 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
if (!dll_flags.count) dll_flags = make->extradllflags;
all_libs = add_import_libs( make, &dep_libs, imports, 0 );
add_import_libs( make, &dep_libs, get_default_imports( make ), 0 ); /* dependencies only */
- strarray_addall( &all_libs, libs );
dll_name = strmake( "%s.dll%s", obj, make->is_cross ? "" : dll_ext );
obj_name = strmake( "%s%s", obj_dir_path( make, obj ), make->is_cross ? ".cross.o" : ".o" );
@@ -3446,7 +3448,6 @@ static void output_test_module( struct makefile *make )
const char *parent_ext = parent && parent->is_cross ? "" : dll_ext;
add_import_libs( make, &dep_libs, get_default_imports( make ), 0 ); /* dependencies only */
- strarray_addall( &all_libs, libs );
strarray_add( &make->all_targets, strmake( "%s%s", testmodule, ext ));
strarray_add( &make->clean_files, strmake( "%s%s", stripped, ext ));
output( "%s%s:\n", obj_dir_path( make, testmodule ), ext );
More information about the wine-cvs
mailing list