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
- Subject: Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails
- From: Michel Marti <michel.marti@xxxxxxxxxxxx>
- Date: Wed, 05 Apr 2006 18:26:07 +0200
Daniel Jacobowitz wrote:
>>In contrast, using the uclinux toolchain results in make using
>>"-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include" which is a valid directory:
>
>
> I believe this was a bug in the kernel build system, since fixed. You
> might want to check how the makefile gets that path.
>
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?