[Mesa-dev] cflags mess with llvm builds

Julien Cristau jcristau at debian.org
Fri Sep 24 05:22:08 PDT 2010


On Fri, Sep 24, 2010 at 14:06:51 +0200, Xavier Chantry wrote:

> When gallium llvm is enabled, configure.ac does the following :
> LLVM_CFLAGS=`$LLVM_CONFIG --cflags`
> 
> This is the result on my system :
> -I/usr/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -O2 -fomit-frame-pointer -fPIC
> 
I'd argue that that's a bug in llvm-config, it has no business telling
you what optimisation level to use, or defining random macros.

Cheers,
Julien


More information about the mesa-dev mailing list