Commit ffd2e484 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Always expand the library name for cross-compiled import libraries.

parent 058783b8
...@@ -2001,13 +2001,11 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra ...@@ -2001,13 +2001,11 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
if (submake->importlib && !strcmp( submake->importlib, name )) if (submake->importlib && !strcmp( submake->importlib, name ))
{ {
const char *dir = top_obj_dir_path( make, submake->base_dir ); if (cross || !*dll_ext || submake->staticimplib)
const char *ext = cross ? "cross.a" : *dll_ext ? "def" : "a"; lib = base_dir_path( submake, strmake( "lib%s.a", name ));
if (!cross && submake->staticimplib)
lib = base_dir_path( submake, submake->staticimplib );
else else
strarray_add( deps, strmake( "%s/lib%s.%s", dir, name, ext )); strarray_add( deps, top_obj_dir_path( make,
strmake( "%s/lib%s.def", submake->base_dir, name )));
break; break;
} }
...@@ -2016,6 +2014,7 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra ...@@ -2016,6 +2014,7 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
if (lib) if (lib)
{ {
if (cross) lib = replace_extension( lib, ".a", ".cross.a" );
lib = top_obj_dir_path( make, lib ); lib = top_obj_dir_path( make, lib );
strarray_add( deps, lib ); strarray_add( deps, lib );
strarray_add( &ret, lib ); strarray_add( &ret, lib );
......
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