patches/gcc/2.95.3/180-threads_snafu.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 07 21:31:08 2008 +0000 (2008-07-07)
changeset 643 a8d422b20733
permissions -rw-r--r--
Update samples to latest options set (no config changes).

/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 29 12 17 0 +++++--------
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 23 12 11 0 +++++-----
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 21 8 13 0 +++------
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 15 8 7 0 ++++---
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 19 10 9 0 +++++----
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 29 12 17 0 +++++--------
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 23 12 11 0 +++++-----
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 21 8 13 0 +++------
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 15 8 7 0 ++++---
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 23 12 11 0 +++++-----
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 11 6 5 0 +++--
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 23 12 11 0 +++++-----
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 9 5 4 0 ++--
13 files changed, 125 insertions(+), 136 deletions(-)
     1 This fixes the error
     2 
     3 In file included from gthr-default.h:1,
     4                  from /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/gthr.h:98,
     5                  from /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/libgcc2.c:3034:
     6 /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/gthr-posix.h:37: pthread.h: No such file or directory
     7 make[3]: *** [libgcc2.a] Error 1
     8 make[3]: Leaving directory `/build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/build-gcc-core/gcc'
     9 
    10 in what I think is a nicer way than the patch used by the arm team,
    11 i.e. "perl -pi -e 's/^(TARGET_LIBGCC2_CFLAGS.*)/$1 -Dinhibit_libc -D__gthr_posix_h/' gcc/config/arm/t-linux"
    12 which seems a bit of a kludge.
    13 
    14 --- gcc-2.95.3/gcc/configure.old	Fri Mar 16 06:13:48 2001
    15 +++ gcc-2.95.3/gcc/configure	Sun Jun  8 13:02:20 2003
    16 @@ -853,9 +853,9 @@
    17  # Check whether --enable-threads or --disable-threads was given.
    18  if test "${enable_threads+set}" = set; then
    19    enableval="$enable_threads"
    20 -  if test x$enable_threads = xno; then
    21 -	enable_threads=''
    22 -fi
    23 +  #if test x$enable_threads = xno; then
    24 +	#enable_threads=''
    25 +  #fi
    26  else
    27    enable_threads=''
    28  fi