patches/gdb/6.5/130-fix-compile-flag-mismatch.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Aug 07 14:05:47 2008 +0000 (2008-08-07)
changeset 766 717efd8b78b4
parent 96 aa1a9fbd6eb8
permissions -rw-r--r--
Update all samples to the latest set of options.
Update some samples to use newer features.
Add patches for the uClibc-20080801 snapshot to be able to build with gcc-4.3.
Add a patch against glibc-2.7 to allow building PPC with latest kernel headers.
Add a patch to gcc to use an alternate unwinding when built against uClibc (after a private explanation/request by Daniel Egger <daniel@eggers-club.de>)

/trunk/patches/glibc/2.7/230-powerpc-private_futex.patch | 15 15 0 0 +
/trunk/patches/uClibc/20080801/300-fix-asm.patch | 175 175 0 0 +++++++++
/trunk/patches/uClibc/20080801/100-ifaddrs.patch | 190 190 0 0 +++++++++
/trunk/patches/uClibc/20080801/200-mips-typeof.patch | 112 112 0 0 ++++++
/trunk/patches/gcc/4.3.1/330-unwind-for-uClibc.patch | 25 25 0 0 +
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 17 10 7 0 +
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 14 11 3 0 +
/trunk/samples/x86_64-unknown-linux-uclibc/uClibc-20080801.config | 232 232 0 0 ++++++++++++
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 34 21 13 0 +-
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 10 7 3 0 +
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/mips-unknown-linux-uclibc/uClibc-20080801.config | 249 249 0 0 ++++++++++++
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 38 23 15 0 +-
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 10 4 0 +
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/i586-geode-linux-uclibc/uClibc-20080801.config | 261 261 0 0 +++++++++++++
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 32 20 12 0 ++
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 12 9 3 0 +
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 16 10 6 0 +
25 files changed, 1428 insertions(+), 84 deletions(-)
yann@96
     1
diff -ur gdb-6.4/gdb/configure gdb-6.4-patched/gdb/configure
yann@96
     2
--- gdb-6.4/gdb/configure	2005-07-25 10:08:40.000000000 -0500
yann@96
     3
+++ gdb-6.4-patched/gdb/configure	2007-02-05 13:22:36.000000000 -0600
yann@96
     4
@@ -309,7 +309,7 @@
yann@96
     5
 # include <unistd.h>
yann@96
     6
 #endif"
yann@96
     7
 
yann@96
     8
-ac_subdirs_all="$ac_subdirs_all doc testsuite"
yann@96
     9
+ac_subdirs_all="$ac_subdirs_all doc"
yann@96
    10
 ac_subdirs_all="$ac_subdirs_all gdbtk"
yann@96
    11
 ac_subdirs_all="$ac_subdirs_all multi-ice"
yann@96
    12
 ac_subdirs_all="$ac_subdirs_all gdbserver"
yann@96
    13
@@ -5940,7 +5940,7 @@
yann@96
    14
 
yann@96
    15
 
yann@96
    16
 
yann@96
    17
-subdirs="$subdirs doc testsuite"
yann@96
    18
+subdirs="$subdirs doc"
yann@96
    19
 
yann@96
    20
 
yann@96
    21
 . $srcdir/configure.host
yann@96
    22
diff -ur gdb-6.4/gdb/gdbserver/configure gdb-6.4-patched/gdb/gdbserver/configure
yann@96
    23
--- gdb-6.4/gdb/gdbserver/configure	2005-09-17 18:14:37.000000000 -0500
yann@96
    24
+++ gdb-6.4-patched/gdb/gdbserver/configure	2007-02-05 13:22:58.000000000 -0600
yann@96
    25
@@ -1239,7 +1239,7 @@
yann@96
    26
       ac_cache_corrupted=: ;;
yann@96
    27
     ,);;
yann@96
    28
     *)
yann@96
    29
-      if test "x$ac_old_val" != "x$ac_new_val"; then
yann@96
    30
+      if test "`echo $ac_old_val`" != "`echo $ac_new_val`"; then
yann@96
    31
 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
yann@96
    32
 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
yann@96
    33
 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
yann@96
    34
diff -ur gdb-6.4/gdb/testsuite/configure gdb-6.4-patched/gdb/testsuite/configure
yann@96
    35
--- gdb-6.4/gdb/testsuite/configure	2005-04-11 09:13:12.000000000 -0500
yann@96
    36
+++ gdb-6.4-patched/gdb/testsuite/configure	2007-02-05 13:22:36.000000000 -0600
yann@96
    37
@@ -1248,7 +1248,7 @@
yann@96
    38
       ac_cache_corrupted=: ;;
yann@96
    39
     ,);;
yann@96
    40
     *)
yann@96
    41
-      if test "x$ac_old_val" != "x$ac_new_val"; then
yann@96
    42
+      if test "`echo $ac_old_val" != "`echo $ac_new_val"; then
yann@96
    43
 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
yann@96
    44
 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
yann@96
    45
 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
yann@96
    46
diff -ur gdb-6.4/Makefile.in gdb-6.4-patched/Makefile.in
yann@96
    47
--- gdb-6.4/Makefile.in	2005-12-01 23:29:54.000000000 -0600
yann@96
    48
+++ gdb-6.4-patched/Makefile.in	2007-02-05 13:22:36.000000000 -0600
yann@96
    49
@@ -383,7 +383,7 @@
yann@96
    50
 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
yann@96
    51
 # (which we know are built with gcc) are built with optimizations so
yann@96
    52
 # prepend -O2 when setting CFLAGS_FOR_TARGET.
yann@96
    53
-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
yann@96
    54
+CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
yann@96
    55
 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
yann@96
    56
 
yann@96
    57
 # If GCC_FOR_TARGET is not overriden on the command line, then this
yann@96
    58
diff -ur gdb-6.4/Makefile.tpl gdb-6.4-patched/Makefile.tpl
yann@96
    59
--- gdb-6.4/Makefile.tpl	2005-10-22 05:37:55.000000000 -0500
yann@96
    60
+++ gdb-6.4-patched/Makefile.tpl	2007-02-05 13:22:36.000000000 -0600
yann@96
    61
@@ -386,7 +386,7 @@
yann@96
    62
 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
yann@96
    63
 # (which we know are built with gcc) are built with optimizations so
yann@96
    64
 # prepend -O2 when setting CFLAGS_FOR_TARGET.
yann@96
    65
-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
yann@96
    66
+CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
yann@96
    67
 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
yann@96
    68
 
yann@96
    69
 # If GCC_FOR_TARGET is not overriden on the command line, then this