Re: [patch core/stackprotector] stackprotector: Fix build whencompiler lacks support

From: Linus Torvalds
Date: Wed Jan 01 2014 - 14:34:01 EST

On Wed, Jan 1, 2014 at 3:42 AM, Yann E. MORIN <yann.morin.1998@xxxxxxx> wrote:
> On 2013-12-31 16:16 -0800, Linus Torvalds spake thusly:
>> What we really really want to do is to have some way to add config
>> options based on shell scripts and compiler support. That would also
>> get rid of a lot of Makefile trickery etc.
>> Then we could just make CC_STACKPROTECTOR_STRONG depend on
> Sam Ravnborg suggested somethink along those lines back in July:
> and a tentative implementation:

Ack. Looks good to me. I've wanted this for a long time for other
reasons, we should finally just do it.

That said, we should make sure that the shell execution thing gets
access to $(CC) etc variables that we have in

> Basically, that would give something like:
> bool
> option exec="some/script/to/test-gcc -fstack-protector-strong"

For the compiler options, it would hopefully be sufficient to just do
something like

option exec="$CC -fstack-protector-strong -c empty.c"

or something like that. No?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at