From: Sasha Finkelstein <fnkl.kernel(a)gmail.com> Some implibs contain code that indirectly includes winnt.h, which in turn contains NtGetCurrentTeb. On arm64 that is implemented by reading a global register variable. Gcc is perfectly fine with that, but clang complains that x18 is not a reserved register on linux. Signed-off-by: Sasha Finkelstein <fnkl.kernel(a)gmail.com> --- tools/makedep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/makedep.c b/tools/makedep.c index ad06868fdab..0aef369c3ff 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -3243,7 +3243,7 @@ static void output_source_one_arch( struct makefile *make, struct incl_file *sou else if (archs.count > 1 && is_using_msvcrt( make )) { if (!so_dll_supported) return; - if (!(source->file->flags & FLAG_C_IMPLIB) && (!make->staticlib || make->extlib)) return; + if ((!make->staticlib || make->extlib)) return; } if (strendswith( source->name, ".S" ) && is_subdir_other_arch( source->name, arch )) return; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8068