makedep: Don't try to use .delay.a extension for non-PE delay imports.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-04-21 19:02:42 +02:00 committed by Alexandre Julliard
parent ea9f47a767
commit c18443aadb
1 changed files with 4 additions and 2 deletions

View File

@ -2219,8 +2219,10 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
if (lib)
{
if (delay && !delay_load_flag) lib = replace_extension( lib, ".a", ".delay.a" );
else if (make->is_cross) lib = replace_extension( lib, ".a", ".cross.a" );
if (delay && !delay_load_flag && (make->is_cross || !*dll_ext))
lib = replace_extension( lib, ".a", ".delay.a" );
else if (make->is_cross)
lib = replace_extension( lib, ".a", ".cross.a" );
lib = top_obj_dir_path( make, lib );
strarray_add( deps, lib );
strarray_add( &ret, lib );