clang version 10.0.1 identified as gcc in configure ?

Hans Åberg haberg-1 at telia.com
Thu Aug 20 15:32:07 UTC 2020


> On 20 Aug 2020, at 16:19, Vincent Lefevre <vincent at vinc17.net> wrote:
> 
> On 2020-08-20 14:16:35 +0200, Hans Åberg wrote:
>>> On 20 Aug 2020, at 10:50, Dennis Clarke <dclarke at blastwave.org> wrote:
>>> 
>>> Never would have guessed that in a million years.
>> 
>> It is the POSIX name for the system compiler [1]. If you have access to the real GCC or Clang, you might set links to them in /usr/local/bin/.
>> 
>> 1. https://pubs.opengroup.org/onlinepubs/007908799/xcu/cc.html
> 
> The __GNUC_* macros are not part of POSIX!

GNU software probably looks for GCC first, but maybe tries cc or c99 if that fails, which may be overlooked in tests: On MacOS, cc is just a link to Apple clang, but c99 seems to be the same compiler with a lot of options disabled.



More information about the gmp-discuss mailing list