RE: cross-compiler and stdarg.h

2 messages, 2 authors, 2002-10-17 · open the first message on its own page

RE: cross-compiler and stdarg.h

From: D'Abbraccio Joe-ljd015 <hidden>
Date: 2002-10-11 15:55:04

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) ?
quoted hunk
-----Original Message-----
From: Steven Scholz [mailto:steven.scholz@imc-berlin.de]
Sent: Friday, October 11, 2002 6:46 AM
To: Hollis Blanchard
Cc: linuxppc-embedded@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/

RE: cross-compiler and stdarg.h

From: Marius Groeger <hidden>
Date: 2002-10-17 12:16:03

On Fri, 11 Oct 2002, D'Abbraccio Joe-ljd015 wrote:
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) ?
It only negates _parts_ of -nostdinc. You are right in pointing out the
potential ugliness of this solution. The culprit lies IMHO pretty deep in
strong interconnection of components which is inherent to UNIX. (Note that
this is not meant to be flame bait, please ignore this mail if it offends
you. :-)

Regards,
Marius

-----------------------------------------------------------------------------
Marius Groeger           SYSGO Real-Time Solutions AG       mgroeger@sysgo.de
Software Engineering     Embedded and Real-Time Software    www.sysgo.de
Voice: +49-6136-9948-0   Am Pfaffenstein 14                 www.osek.de
FAX:   +49-6136-9948-10  55270 Klein-Winternheim, Germany   www.elinos.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help