patches/gcc/2.95.3/threads_snafu.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
This fixes the error
yann@1
     2
yann@1
     3
In file included from gthr-default.h:1,
yann@1
     4
                 from /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/gthr.h:98,
yann@1
     5
                 from /build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/gcc-2.95.3/gcc/libgcc2.c:3034:
yann@1
     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
yann@1
     7
make[3]: *** [libgcc2.a] Error 1
yann@1
     8
make[3]: Leaving directory `/build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.2/build-gcc-core/gcc'
yann@1
     9
yann@1
    10
in what I think is a nicer way than the patch used by the arm team,
yann@1
    11
i.e. "perl -pi -e 's/^(TARGET_LIBGCC2_CFLAGS.*)/$1 -Dinhibit_libc -D__gthr_posix_h/' gcc/config/arm/t-linux"
yann@1
    12
which seems a bit of a kludge.
yann@1
    13
yann@1
    14
--- gcc-2.95.3/gcc/configure.old	Fri Mar 16 06:13:48 2001
yann@1
    15
+++ gcc-2.95.3/gcc/configure	Sun Jun  8 13:02:20 2003
yann@1
    16
@@ -853,9 +853,9 @@
yann@1
    17
 # Check whether --enable-threads or --disable-threads was given.
yann@1
    18
 if test "${enable_threads+set}" = set; then
yann@1
    19
   enableval="$enable_threads"
yann@1
    20
-  if test x$enable_threads = xno; then
yann@1
    21
-	enable_threads=''
yann@1
    22
-fi
yann@1
    23
+  #if test x$enable_threads = xno; then
yann@1
    24
+	#enable_threads=''
yann@1
    25
+  #fi
yann@1
    26
 else
yann@1
    27
   enable_threads=''
yann@1
    28
 fi