makefiles: Don't use standard libs for programs that specify -nodefaultlibs.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-04-07 20:55:04 +02:00
parent b87256cd1d
commit c82c63f58a
1 changed files with 2 additions and 1 deletions

View File

@ -3518,7 +3518,8 @@ static void output_programs( struct makefile *make )
struct strarray symlinks = get_expanded_file_local_var( make, make->programs.str[i], "SYMLINKS" ); struct strarray symlinks = get_expanded_file_local_var( make, make->programs.str[i], "SYMLINKS" );
if (!objs.count) objs = make->object_files; if (!objs.count) objs = make->object_files;
strarray_addall( &all_libs, add_default_libraries( make, &deps )); if (!strarray_exists( &all_libs, "-nodefaultlibs" ))
strarray_addall( &all_libs, add_default_libraries( make, &deps ));
output( "%s:", obj_dir_path( make, program ) ); output( "%s:", obj_dir_path( make, program ) );
output_filenames_obj_dir( make, objs ); output_filenames_obj_dir( make, objs );