cross-compiler and stdarg.h
D'Abbraccio Joe-ljd015
Joe.D'abbraccio at motorola.com
Sat Oct 12 01:55:04 EST 2002
Doesn't this patch simply negate the -nostdinc switch (i.e. the resulting switch is something like "-I /usr/opt/eldk-1.0.1/usr/lib/gcc-lib/ppc-linux/2.95.3/include" which is part of stdinc) ?
> -----Original Message-----
> From: Steven Scholz [mailto:steven.scholz at imc-berlin.de]
> Sent: Friday, October 11, 2002 6:46 AM
> To: Hollis Blanchard
> Cc: linuxppc-embedded at lists.linuxppc.org
> Subject: Re: cross-compiler and stdarg.h
>
>
> I had this problem too. A while ago. On 2002/09/13 I posted
> to this list but
> with no success.
>
> I found the problem in the main Makefile:
>
> ---------------
> @@ -261,7 +262,7 @@
> # 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code
> and you are not
> UML
> # then your code is broken! KAO.
>
> -kbuild_2_4_nostdinc := -nostdinc -iwithprefix include
> +kbuild_2_4_nostdinc := -nostdinc $(shell $(CC)
> -print-search-dirs | sed -ne
> 's/install: \(.*\)/-I \1include/gp')
> export kbuild_2_4_nostdinc
>
> export CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL
> ---------------
>
> I have no idea why... :o(
>
> Cheers,
>
> Steven
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list