patches/gdb/6.5/130-fix-compile-flag-mismatch.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 03 09:50:16 2009 +0000 (2009-05-03)
branchnewlib
changeset 1366 5e5d1e6f55d3
parent 96 aa1a9fbd6eb8
permissions -rw-r--r--
Update the newlib devel branch with stuff from /trunk@1498.

-------- diffstat follows --------
/devel/newlib/configure | 336 176 160 0 +++++++------
/devel/newlib/Makefile.in | 12 3 9 0 -
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/internals.sh | 1 0 1 0 -
/devel/newlib/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/functions | 111 5 106 0 ----
/devel/newlib/scripts/config.guess | 7 5 2 0 +
/devel/newlib/scripts/config.sub | 3 2 1 0 +
/devel/newlib/scripts/saveSample.sh.in | 4 2 2 0
/devel/newlib/docs/overview.txt | 8 6 2 0 +
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 8 4 4 0
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/config/kernel/linux.in | 108 2 106 0 ----
/devel/newlib/config/global/ct-behave.in | 22 13 9 0 +
/devel/newlib/config/global/download.in | 210 15 195 0 +-------
/devel/newlib/config/libc/glibc.in | 7 7 0 0 +
/devel/newlib/config/libc/glibc-eglibc.in-common | 15 14 1 0 +
45 files changed, 382 insertions(+), 839 deletions(-)
     1 diff -ur gdb-6.4/gdb/configure gdb-6.4-patched/gdb/configure
     2 --- gdb-6.4/gdb/configure	2005-07-25 10:08:40.000000000 -0500
     3 +++ gdb-6.4-patched/gdb/configure	2007-02-05 13:22:36.000000000 -0600
     4 @@ -309,7 +309,7 @@
     5  # include <unistd.h>
     6  #endif"
     7  
     8 -ac_subdirs_all="$ac_subdirs_all doc testsuite"
     9 +ac_subdirs_all="$ac_subdirs_all doc"
    10  ac_subdirs_all="$ac_subdirs_all gdbtk"
    11  ac_subdirs_all="$ac_subdirs_all multi-ice"
    12  ac_subdirs_all="$ac_subdirs_all gdbserver"
    13 @@ -5940,7 +5940,7 @@
    14  
    15  
    16  
    17 -subdirs="$subdirs doc testsuite"
    18 +subdirs="$subdirs doc"
    19  
    20  
    21  . $srcdir/configure.host
    22 diff -ur gdb-6.4/gdb/gdbserver/configure gdb-6.4-patched/gdb/gdbserver/configure
    23 --- gdb-6.4/gdb/gdbserver/configure	2005-09-17 18:14:37.000000000 -0500
    24 +++ gdb-6.4-patched/gdb/gdbserver/configure	2007-02-05 13:22:58.000000000 -0600
    25 @@ -1239,7 +1239,7 @@
    26        ac_cache_corrupted=: ;;
    27      ,);;
    28      *)
    29 -      if test "x$ac_old_val" != "x$ac_new_val"; then
    30 +      if test "`echo $ac_old_val`" != "`echo $ac_new_val`"; then
    31  	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    32  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    33  	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    34 diff -ur gdb-6.4/gdb/testsuite/configure gdb-6.4-patched/gdb/testsuite/configure
    35 --- gdb-6.4/gdb/testsuite/configure	2005-04-11 09:13:12.000000000 -0500
    36 +++ gdb-6.4-patched/gdb/testsuite/configure	2007-02-05 13:22:36.000000000 -0600
    37 @@ -1248,7 +1248,7 @@
    38        ac_cache_corrupted=: ;;
    39      ,);;
    40      *)
    41 -      if test "x$ac_old_val" != "x$ac_new_val"; then
    42 +      if test "`echo $ac_old_val" != "`echo $ac_new_val"; then
    43  	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    44  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    45  	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    46 diff -ur gdb-6.4/Makefile.in gdb-6.4-patched/Makefile.in
    47 --- gdb-6.4/Makefile.in	2005-12-01 23:29:54.000000000 -0600
    48 +++ gdb-6.4-patched/Makefile.in	2007-02-05 13:22:36.000000000 -0600
    49 @@ -383,7 +383,7 @@
    50  # CFLAGS will be just -g.  We want to ensure that TARGET libraries
    51  # (which we know are built with gcc) are built with optimizations so
    52  # prepend -O2 when setting CFLAGS_FOR_TARGET.
    53 -CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
    54 +CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
    55  SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
    56  
    57  # If GCC_FOR_TARGET is not overriden on the command line, then this
    58 diff -ur gdb-6.4/Makefile.tpl gdb-6.4-patched/Makefile.tpl
    59 --- gdb-6.4/Makefile.tpl	2005-10-22 05:37:55.000000000 -0500
    60 +++ gdb-6.4-patched/Makefile.tpl	2007-02-05 13:22:36.000000000 -0600
    61 @@ -386,7 +386,7 @@
    62  # CFLAGS will be just -g.  We want to ensure that TARGET libraries
    63  # (which we know are built with gcc) are built with optimizations so
    64  # prepend -O2 when setting CFLAGS_FOR_TARGET.
    65 -CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
    66 +CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
    67  SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
    68  
    69  # If GCC_FOR_TARGET is not overriden on the command line, then this