[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53479: clang identified as MSVC because of cl* match
From: |
Ozkan Sezer |
Subject: |
bug#53479: clang identified as MSVC because of cl* match |
Date: |
Sun, 23 Jan 2022 20:10:00 +0300 |
On 1/23/22, Brecht Sanders <brecht@sanders.org> wrote:
> When building MinGW-w64 with clang I ran into issues compiling
> |winpthreads|.
>
> Somehow |libtool| would always build as if the compiler was MSVC (|.lib|
> instead of |.a|, MSVC-style linker flags).
>
> After digging into what caused this I found that
> |mingw-w64-libraries/winpthreads/configure| matches the compiler with
> |cl*| to detect MSVC (|cl.exe|) but as I'm using |clang.exe| this also
> matches.
>
> But there are more similar issues in m4/libtool.m4.
>
> How do I get around this, or is this something that can be fixed in
> libtool?
I guess the problem is at these two lines at least:
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=blob;f=m4/libtool.m4;h=20e645b8a554561d68dbe8ed5d9a7df80595e5fa;hb=HEAD#l4950
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=blob;f=m4/libtool.m4;h=20e645b8a554561d68dbe8ed5d9a7df80595e5fa;hb=HEAD#l5584