> kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
Russell King suggested the following nice construct, which I'll submit for
2.5 shortly. It should work for you, too.
> CFLAGS += -nostdinc -iwithprefix include
>
> `-iwithprefix DIR'
> Add a directory to the second include path. The directory's name
> is made by concatenating PREFIX and DIR, where PREFIX was
> specified previously with `-iprefix'. If you have not specified a
> prefix yet, the directory containing the installed passes of the
> compiler is used as the default.
--Kai
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/