patches/uClibc/0.9.29/140-bits_sysnum_h.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 17:54:21 2011 +0200 (2011-07-17)
changeset 2888 dd71df95903a
parent 108 69407950a2a2
permissions -rw-r--r--
cc/gcc: pass the companion libs prefix to cc_core

In case of canadian-cross, the companion libraries are not the same for
the core cc (they run on 'build') as they are for the final cc (they run
on 'host').

Prepare for this differentiation (coming later), while retaining the
current behavior (to use the same compblibs).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
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