patches/uClibc/0.9.29/140-bits_sysnum_h.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Dec 14 19:17:37 2009 +0100 (2009-12-14)
changeset 1662 ea3490d46f4e
parent 108 69407950a2a2
permissions -rw-r--r--
scripts: correctly warn when the local tarballs directory does not exist

Warn about a missing local tarball directory, only if it was configured.
Avoid the spurious message:
Directory '${CT_LOCAL_TARBALLS_DIR}' does not exist.
Will not save downloaded tarballs to local storage.

Thanks to "Pedro I. Sanchez" <psanchez@colcan.ca> for pointing out the
issue:
http://sourceware.org/ml/crossgcc/2009-12/msg00011.html
yann@108
     1
YEM-20070519:
yann@108
     2
bits/sysnum.h needs a cross compiler to be built. Fortunately, this
yann@108
     3
header is not needed to build gcc. Move generation of this header.
yann@108
     4
yann@108
     5
Index: uClibc/Makefile.in
yann@108
     6
===================================================================
yann@108
     7
--- uClibc/Makefile.in	(revision 18651)
yann@108
     8
+++ uClibc/Makefile.in	(working copy)
yann@108
     9
@@ -91,6 +91,11 @@
yann@108
    10
 			$(LN) -fs $$i .; \
yann@108
    11
 		done; \
yann@108
    12
 	fi
yann@108
    13
+ifeq ($(UCLIBC_HAS_LOCALE),y)
yann@108
    14
+	$(MAKE) locale_headers
yann@108
    15
+endif
yann@108
    16
+
yann@108
    17
+pregen: headers
yann@108
    18
 	$(Q)\
yann@108
    19
 	set -e; \
yann@108
    20
 	cd $(top_builddir); \
yann@108
    21
@@ -102,12 +107,7 @@
yann@108
    22
 	else \
yann@108
    23
 		mv -f $$tmp include/bits/sysnum.h; \
yann@108
    24
 	fi
yann@108
    25
-ifeq ($(UCLIBC_HAS_LOCALE),y)
yann@108
    26
-	$(MAKE) locale_headers
yann@108
    27
-endif
yann@108
    28
 
yann@108
    29
-pregen: headers
yann@108
    30
-
yann@108
    31
 install: install_runtime install_dev
yann@108
    32
 
yann@108
    33