Module: wine Branch: master Commit: 4819a850a0ee4ad1989bbd5c7207c5d952166d14 URL: https://gitlab.winehq.org/wine/wine/-/commit/4819a850a0ee4ad1989bbd5c7207c5d...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Oct 31 16:34:40 2023 +0100
winegcc: Use a temp file for the implicitly created import library.
Otherwise clang creates a .lib file along with every dll.
---
tools/winegcc/winegcc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index b8eb5e4fc79..4924f608720 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -465,6 +465,8 @@ static struct strarray get_link_args( struct options *opts, const char *output_n
if (opts->out_implib) strarray_add(&link_args, strmake("-Wl,-implib:%s", opts->out_implib)); + else + strarray_add(&link_args, strmake("-Wl,-implib:%s", make_temp_file( output_name, ".lib" )));
strarray_add( &link_args, strmake( "-Wl,-filealign:%s", opts->file_align ? opts->file_align : "0x1000" ));