On Wed, Oct 18, 2017 at 10:00 PM, Jeff Layton <jlayton@xxxxxxxxxxxxxxx> wrote: > On Wed, 2017-10-18 at 21:41 +0200, Luc Van Oostenryck wrote: >> On Wed, Oct 18, 2017 at 5:12 PM, Jeff Layton <jlayton@xxxxxxxxxxxxxxx> wrote: >> > >> > The fedora packaging tools want to override $CFLAGS when building >> > sparse, but that fails on a couple of targets. >> > >> > There are a couple of build targets in the makefile that want to add >> > options to $CFLAGS. When we do a build though, we pass $ALL_CFLAGS to >> > the compiler, and that ends up without those extra options, if CFLAGS= >> > was specified on the command line. >> > >> > I'm not sure if this is a recursive variable expansion bug in make, but >> >> I think it's just an effect of CFLAGS being then used as a >> target-specific variable >> >> -- Luc > > Ahh ok...so this is probably the correct fix then? I guess so but I don't really know how and what you're overriding. Something like: make CFLAGS="-O3 -some-others-flags" To be honest, I don't like much sparse's makefile and I don't see the real need for BASIC_CFLAGS & ALL_CFLAGS. On the other hand, I understand very well the need for an explicit mechanism for adding or changing some CFLAGS's flags > Thanks for looking! You're most welcome -- Luc -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html