Subject: Re: [PATCH] Don't pass CFLAGS to the linker

From: Paolo Bonzini <[email-masked]>
Date: Sat, 09 Jan 2010 11:32:07 +0100

On 12/27/2009 07:55 AM, Tomas Carnecky wrote:
> Signed-off-by: Tomas Carnecky<[email-masked]>
> ---
>
> I don't remember exactly which tool had problems with CFLAGS being passed
> to the linker. Maybe it was the clang static analyzer, or some other
> tool that I let run on git.git. Anyway, I don't think there's any
> reason to pass CFLAGS to the linker.

One reason is if you want to use GCC's upcoming link-time optimization 
(-flto).

Paolo