Hi Greg,

Greg Ungerer wrote:
Hi Jate,

Jate Sujjavanich wrote:

What did you have to change?
Anything not fixed in the latest uClinux-dist patches?

When I tried the only thing that struck me as odd (and that I
had to fix) was the location of the compilers limits.h file.

On all the other cross toolchains I have generated (not just
for m68knommu, but arm, sh, etc) the gcc limits.h got installed
into the directory which is returned from:
m68k-uclinux-gcc -print-file-name=include.
But in the Code Sourcery 4.2 kit it can only be found in
`m68k-uclinux-gcc -print-file-name=include`/../include-fixed.


I was told the attached patch had been submitted to the uClibc
maintainers and it will correct the include-fixed compile problem.

Regards,
Matt

So I just copied that one, into the normal include diretcory.
Everything built fine after that.

Daniel, are you out there, any idea why this is?

Regards
Greg
Index: Rules.mak
===================================================================
--- Rules.mak	(revision 165466)
+++ Rules.mak	(revision 165467)
@@ -494,7 +494,8 @@ CFLAGS += -I$(KERNEL_HEADERS)
 
 # Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'
 #CFLAGS+=-iwithprefix include
-CFLAGS+=-isystem $(shell $(CC) -print-file-name=include || echo)
+C_SYSTEM_INCLUDE :=$(shell $(CC) -print-file-name=include || echo)
+CFLAGS+= -isystem $(C_SYSTEM_INCLUDE) -isystem $(C_SYSTEM_INCLUDE)-fixed
 
 ifneq ($(DOASSERTS),y)
 CFLAGS+=-DNDEBUG
Index: ChangeLog.csl
===================================================================
--- ChangeLog.csl	(revision 165466)
+++ ChangeLog.csl	(revision 165467)
@@ -0,0 +1,11 @@
+2007-03-10  Nathan Sidwell  <[EMAIL PROTECTED]>
+
+	* Rules.mak: Fix an indentation.
+	(C_SYSTEM_INCLUDE): New.
+	(CFLAGS): Use it to provide both regular and -fixed include paths.
+	
+^L
+Local Variables:
+change-log-default-name: "ChangeLog.csl"
+mode: change-log
+End:
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to