patches/uClibc/0.9.29/140-bits_sysnum_h.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Dec 12 21:41:16 2011 +0200 (2011-12-12)
branch1.13
changeset 2845 0dc9d4931246
parent 108 69407950a2a2
permissions -rw-r--r--
scripts: unset CONFIG_SITE

Some distributions (eg. openSUSE 12.1) systematically export
the CONFIG_SITE environment variable to point to a custom
script setting misc paths for ./configure.

This can, and does, break when cross-compiling for architectures
that are not supported by this script.

The simple workaround is to unset this variable.
NB: buildroot has a similar fix:
http://git.buildroot.org/buildroot/commit/?id=12c9f7dd6dee9c6029b4f9a12d6aac1516911ab4

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 21f4f28e60ec0342133086c9a51e7f0e5b181fb8)
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