makedep: Use winebuild to build cross compiled static libraries.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-03-04 17:15:50 +01:00 committed by Alexandre Julliard
parent c0467a1470
commit 4ec4988c2e
1 changed files with 4 additions and 4 deletions

View File

@ -3382,12 +3382,12 @@ static void output_static_lib( struct makefile *make )
char *name = replace_extension( make->staticlib, ".a", ".cross.a" ); char *name = replace_extension( make->staticlib, ".a", ".cross.a" );
strarray_add( &make->all_targets, name ); strarray_add( &make->all_targets, name );
output( "%s:", obj_dir_path( make, name )); output( "%s: %s", obj_dir_path( make, name ), tools_path( make, "winebuild" ));
output_filenames_obj_dir( make, make->crossobj_files ); output_filenames_obj_dir( make, make->crossobj_files );
output( "\n\trm -f $@\n" ); output( "\n" );
output( "\t%s-ar rc $@", crosstarget ); output( "\t%s -b %s -w --staticlib -o $@", tools_path( make, "winebuild" ), crosstarget );
output_filenames_obj_dir( make, make->crossobj_files ); output_filenames_obj_dir( make, make->crossobj_files );
output( "\n\t%s-ranlib $@\n", crosstarget ); output( "\n" );
} }
} }