Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails



On Wed, Apr 05, 2006 at 06:26:07PM +0200, Michel Marti wrote:
> In my case, it get's it in arch/m68knommu/platform/527x/Rules.make:
> 
> GCC_DIR = $(shell $(CC) -v 2>&1 | grep specs | sed -e 's/.* \(.*\)specs/\1\./')
> 
> The question now is how to replace this with something that works for a gcc that returns
> "Using built-in specs." when invoking it with "-v". Are there any other gcc-options that
> will return the path to the gcc's include directory?

"gcc -print-file-name=include".  This is used by 2.6.x kernels:

Makefile:NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)


-- 
Daniel Jacobowitz
CodeSourcery