patches/gcc/2.95.3/threads_snafu.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/2.95.3/threads_snafu.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,28 @@
     1.4 +This fixes the error
     1.5 +
     1.6 +In file included from gthr-default.h:1,
     1.7 +                 from /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/gthr.h:98,
     1.8 +                 from /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/libgcc2.c:3034:
     1.9 +/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
    1.10 +make[3]: *** [libgcc2.a] Error 1
    1.11 +make[3]: Leaving directory `/build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/build-gcc-core/gcc'
    1.12 +
    1.13 +in what I think is a nicer way than the patch used by the arm team,
    1.14 +i.e. "perl -pi -e 's/^(TARGET_LIBGCC2_CFLAGS.*)/$1 -Dinhibit_libc -D__gthr_posix_h/' gcc/config/arm/t-linux"
    1.15 +which seems a bit of a kludge.
    1.16 +
    1.17 +--- gcc-2.95.3/gcc/configure.old	Fri Mar 16 06:13:48 2001
    1.18 ++++ gcc-2.95.3/gcc/configure	Sun Jun  8 13:02:20 2003
    1.19 +@@ -853,9 +853,9 @@
    1.20 + # Check whether --enable-threads or --disable-threads was given.
    1.21 + if test "${enable_threads+set}" = set; then
    1.22 +   enableval="$enable_threads"
    1.23 +-  if test x$enable_threads = xno; then
    1.24 +-	enable_threads=''
    1.25 +-fi
    1.26 ++  #if test x$enable_threads = xno; then
    1.27 ++	#enable_threads=''
    1.28 ++  #fi
    1.29 + else
    1.30 +   enable_threads=''
    1.31 + fi