automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify compiler?


From: Stefano Lattarini
Subject: Re: How to specify compiler?
Date: Thu, 9 Sep 2010 11:34:40 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Thursday 09 September 2010, Lyre  wrote:
> Never mind.
> 
> set "CC = clang" in Makefile.am would work, however, I forgot it.
But the best way to do it would be to pass it to configure, instead of 
hard-coding it in the Makefile.am:

  $ ./configure CC=clang

Not only this is more flexible, but also more correct.  In fact,
this way, configure will do its checks using the "clang" compiler 
(which I assume you want to use), rather than using "gcc" or the 
default "cc" compiler (which would be useless, since you don't want
to use them).

HTH,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]