[SLOF] [PATCH slof] make: Define default rule for .c when V=1 or V=2

Thomas Huth thuth at redhat.com
Tue Aug 31 19:26:32 AEST 2021

On 11/03/2020 03.37, Alexey Kardashevskiy wrote:
> The default .o:.c rule passes a short file name to gcc to when doing
> "make -C <dir>", we do this a lot for all the libraries.
> The file names printed in gcc errors are relative to <dir> and this
> prevents vim from navigating through errors.
> This passes the full file name to gcc to make it print errors with
> absolute path so vim can navigate through errors nicely.
> This makes it optional when V=1 or V=2 is passed.
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> ---
> Or there is a better way of doing this?
> I find it very annoying to work with ./lib/xxxx as we chdir a lot
> and gcc does not have a flag to print full file names.

This patch broke the compilation of "make js2x" ... thus js2x does not 
compile anymore since more than a year now. Shall we fix it, or shall we 
maybe rather remove the js2x code from the repository?


More information about the SLOF mailing list