On Thursday 10 March 2011, Ingo Molnar wrote: > Also, adding 3 lines per object file is pretty ugly - would it be possible to create > a nicer, compact, single-line way to someone condense a CONFIG_ERROR opt-out > mechanism, the -Werror default and the single-object-file into a single rule? > > Something like: > > obj-werror-y += sched.o I haven't tried it, but it could work (or be made to work) recursively, so you can link multiple objects together and have them use the same flag e.g. obj-y += obj_werror.o ccflags-obj_werror.o += -Werror obj-werror-y += sched.o module.o user.o Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html