summaryrefslogtreecommitdiff
path: root/recipes/uclibc
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2009-05-02 11:34:57 +0100
committerGraeme Gregory <dp@xora.org.uk>2009-05-02 11:34:57 +0100
commit91c920197a372f6174530a178f7a9beb995e827d (patch)
tree4a72def3a625c339ac73f8d9b0d31f9cd585fcbc /recipes/uclibc
parentf8f9b7e4b46979691a5813361b3d4ecba50a20eb (diff)
uclibc_0.9.30.bb : add fix for unifdef for modern gcc/glibc combos.
This is probably suitable for all uclibc when someone tests them.
Diffstat (limited to 'recipes/uclibc')
-rw-r--r--recipes/uclibc/files/unifdef-fix.patch31
-rw-r--r--recipes/uclibc/uclibc_0.9.30.bb1
2 files changed, 32 insertions, 0 deletions
diff --git a/recipes/uclibc/files/unifdef-fix.patch b/recipes/uclibc/files/unifdef-fix.patch
new file mode 100644
index 0000000000..49984f04da
--- /dev/null
+++ b/recipes/uclibc/files/unifdef-fix.patch
@@ -0,0 +1,31 @@
+Index: uClibc-0.9.30/extra/scripts/unifdef.c
+===================================================================
+--- uClibc-0.9.30.orig/extra/scripts/unifdef.c
++++ uClibc-0.9.30/extra/scripts/unifdef.c
+@@ -206,7 +206,7 @@ static void done(void);
+ static void error(const char *);
+ static int findsym(const char *);
+ static void flushline(bool);
+-static Linetype getline(void);
++static Linetype parseline(void);
+ static Linetype ifeval(const char **);
+ static void ignoreoff(void);
+ static void ignoreon(void);
+@@ -512,7 +512,7 @@ process(void)
+
+ for (;;) {
+ linenum++;
+- lineval = getline();
++ lineval = parseline();
+ trans_table[ifstate[depth]][lineval]();
+ debug("process %s -> %s depth %d",
+ linetype_name[lineval],
+@@ -526,7 +526,7 @@ process(void)
+ * help from skipcomment().
+ */
+ static Linetype
+-getline(void)
++parseline(void)
+ {
+ const char *cp;
+ int cursym;
diff --git a/recipes/uclibc/uclibc_0.9.30.bb b/recipes/uclibc/uclibc_0.9.30.bb
index 0a374ceb50..317edf03a9 100644
--- a/recipes/uclibc/uclibc_0.9.30.bb
+++ b/recipes/uclibc/uclibc_0.9.30.bb
@@ -20,6 +20,7 @@ SRC_URI += "file://uClibc.machine file://uClibc.distro \
file://pthread_atfork.patch;patch=1 \
file://uclibc_ldso_use_O0.patch;patch=1 \
file://ldso_use_arm_dl_linux_resolve_in_thumb_mode.patch;patch=1 \
+ file://unifdef-fix.patch;patch=1 \
"
#recent versions uclibc require real kernel headers
PACKAGE_ARCH = "${MACHINE_ARCH}"