Linus Torvalds writes: (Summary) I have this dim memory of allowing
it to set strings too (filling in the default value with the stdout
output from the shell execution).
output from the shell execution).
So I had some experimental patch like that, and it kind of worked, but I never finished it.
I never finished it.
But the reason I never completed it was that for the compiler option case, it really wanted more than a shell command, it needed to get the whole $(CC) etc from the make environment.
whole $(CC) etc from the make environment.
I don't remember the exact syntax I used, but I think it was based on that "option env" syntax, just replacing "env" with "shell".
output from the shell execution).
So I had some experimental patch like that, and it kind of worked, but I never finished it.
I never finished it.
But the reason I never completed it was that for the compiler option case, it really wanted more than a shell command, it needed to get the whole $(CC) etc from the make environment.
whole $(CC) etc from the make environment.
I don't remember the exact syntax I used, but I think it was based on that "option env" syntax, just replacing "env" with "shell".