Mike, Paul,
All,

On Saturday 19 May 2007 08:35, Mike Frysinger wrote:
> the only header that gets generated is bits/sysnum.h and the only thing that 
> uses that is syscall.h ... which gcc doesnt use, so it isnt really too much 
> of an issue ...

OK. What about this patch, then?
I've successfully built a full toolchain with it:
  binutils-2.17.50.0.14
  linux-2.6.21.1 (headers)
  uClibc-0.9.29 (headers)
  gcc-4.0.4 (C only)
  libfloat-990616
  uClibc-0.9.29 (full)
  gcc-4.0.4 (C, C++)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°
YEM-20070519:
bits/sysnum.h needs a cross compiler to be built. Fortunately, this
header is not needed to build gcc. Move generation of this header.

Index: uClibc/Makefile.in
===================================================================
--- uClibc/Makefile.in	(revision 18651)
+++ uClibc/Makefile.in	(working copy)
@@ -91,6 +91,11 @@
 			$(LN) -fs $$i .; \
 		done; \
 	fi
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+	$(MAKE) locale_headers
+endif
+
+pregen: headers
 	$(Q)\
 	set -e; \
 	cd $(top_builddir); \
@@ -102,12 +107,7 @@
 	else \
 		mv -f $$tmp include/bits/sysnum.h; \
 	fi
-ifeq ($(UCLIBC_HAS_LOCALE),y)
-	$(MAKE) locale_headers
-endif
 
-pregen: headers
-
 install: install_runtime install_dev
 
 
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to