patches/glibc/2_9/430-2.7-cross-compile-nptl.patch
changeset 1273 33f0fcab7f03
parent 1272 ddac62e7c428
child 1274 96dfd5b53e38
     1.1 --- a/patches/glibc/2_9/430-2.7-cross-compile-nptl.patch	Fri Mar 27 23:40:07 2009 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,57 +0,0 @@
     1.4 -Original patch from: gentoo/src/patchsets/glibc/2.9/5070_all_glibc-2.7-cross-compile-nptl.patch
     1.5 -
     1.6 --= BEGIN original header =-
     1.7 -A little hack for cross-compiling NPTL
     1.8 -
     1.9 -http://sourceware.org/ml/libc-alpha/2005-02/msg00043.html
    1.10 -
    1.11 --= END original header =-
    1.12 -
    1.13 -diff -durN glibc-2_9.orig/nptl/sysdeps/pthread/configure glibc-2_9/nptl/sysdeps/pthread/configure
    1.14 ---- glibc-2_9.orig/nptl/sysdeps/pthread/configure	2007-10-17 00:24:30.000000000 +0200
    1.15 -+++ glibc-2_9/nptl/sysdeps/pthread/configure	2009-02-02 22:01:28.000000000 +0100
    1.16 -@@ -78,6 +78,10 @@
    1.17 - fi
    1.18 - { echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
    1.19 - echo "${ECHO_T}$libc_cv_forced_unwind" >&6; }
    1.20 -+if test $libc_cv_forced_unwind = no -a $build_cpu != $host_cpu; then
    1.21 -+  echo "$as_me:$LINENO: forcing libc_cv_forced_unwind = yes for cross-compile"
    1.22 -+  libc_cv_forced_unwind=yes
    1.23 -+fi
    1.24 - if test $libc_cv_forced_unwind = yes; then
    1.25 -   cat >>confdefs.h <<\_ACEOF
    1.26 - #define HAVE_FORCED_UNWIND 1
    1.27 -@@ -141,6 +145,10 @@
    1.28 - { echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
    1.29 - echo "${ECHO_T}$libc_cv_c_cleanup" >&6; }
    1.30 -   CFLAGS="$old_CFLAGS"
    1.31 -+  if test $libc_cv_c_cleanup = no -a $build_cpu != $host_cpu; then
    1.32 -+    echo "$as_me:$LINENO: result: forcing libc_cv_c_cleanup = yes for cross-compile"
    1.33 -+    libc_cv_c_cleanup=yes
    1.34 -+  fi
    1.35 -   if test $libc_cv_c_cleanup = no; then
    1.36 -     { { echo "$as_me:$LINENO: error: the compiler must support C cleanup handling" >&5
    1.37 - echo "$as_me: error: the compiler must support C cleanup handling" >&2;}
    1.38 -diff -durN glibc-2_9.orig/nptl/sysdeps/pthread/configure.in glibc-2_9/nptl/sysdeps/pthread/configure.in
    1.39 ---- glibc-2_9.orig/nptl/sysdeps/pthread/configure.in	2003-12-03 07:50:01.000000000 +0100
    1.40 -+++ glibc-2_9/nptl/sysdeps/pthread/configure.in	2009-02-02 22:01:28.000000000 +0100
    1.41 -@@ -28,6 +28,9 @@
    1.42 - struct _Unwind_Context *context;
    1.43 - _Unwind_GetCFA (context)],
    1.44 - libc_cv_forced_unwind=yes, libc_cv_forced_unwind=no)])
    1.45 -+if test $libc_cv_forced_unwind = no -a $build_cpu != $host_cpu; then
    1.46 -+  libc_cv_forced_unwind=yes
    1.47 -+fi
    1.48 - if test $libc_cv_forced_unwind = yes; then
    1.49 -   AC_DEFINE(HAVE_FORCED_UNWIND)
    1.50 - dnl Check for C cleanup handling.
    1.51 -@@ -41,6 +44,9 @@
    1.52 -   puts ("test")],
    1.53 - libc_cv_c_cleanup=yes, libc_cv_c_cleanup=no)])
    1.54 -   CFLAGS="$old_CFLAGS"
    1.55 -+  if test $libc_cv_c_cleanup = no -a $build_cpu != $host_cpu; then
    1.56 -+    libc_cv_c_cleanup=yes
    1.57 -+  fi
    1.58 -   if test $libc_cv_c_cleanup = no; then
    1.59 -     AC_MSG_ERROR([the compiler must support C cleanup handling])
    1.60 -   fi