Date:2010-08-09 04:26:14 (1 year 6 months ago)
Author:Xiangfu Liu
Commit:ea492be17b5bc00eccf4357c1ff3632e43cdedd5
Message:fix the problem with csqrt.

Signed-off-by: Xiangfu Liu <xiangfu@openmobilefree.net>
Acked-by: John Moore <jmoore@zedstar.org>
Files: guile/patches/0001-disable-csqrt.patch (1 diff)
guile/patches/0001-disable-pthread-check-disable-csqrt.patch (1 diff)

Change Details

guile/patches/0001-disable-csqrt.patch
1diff --git a/configure.in b/configure.in
2index 217ac83..c4c16fc 100644
3+++ b/configure.in
4@@ -854,7 +854,7 @@ main (void)
5 }]])],
6     [guile_cv_use_csqrt=yes],
7     [guile_cv_use_csqrt="no, glibc 2.3 bug"],
8- [guile_cv_use_csqrt="yes, hopefully (cross-compiling)"])])
9+ [guile_cv_use_csqrt="no, Ben NanoNote (cross-compiling)"])])
10   case $guile_cv_use_csqrt in
11     yes*)
12       AC_DEFINE(HAVE_USABLE_CSQRT, 1, [Define to 1 if csqrt is bug-free])
guile/patches/0001-disable-pthread-check-disable-csqrt.patch
1diff --git a/configure b/configure
2index a57297d..98857ae 100755
3--- a/configure
4@@ -35053,6 +35053,8 @@ fi
5
6 if test "$with_threads" = pthreads; then
7
8+cat >> /dev/null << end_pthread_attr_getstack_check_part1
9+
10 { $as_echo "$as_me:$LINENO: checking whether pthread_attr_getstack works for the main thread" >&5
11 $as_echo_n "checking whether pthread_attr_getstack works for the main thread... " >&6; }
12 old_CFLAGS="$CFLAGS"
13@@ -35121,12 +35123,15 @@ $as_echo "$ac_try_echo") >&5
14   ac_status=$?
15   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16   (exit $ac_status); }; }; then
17+
18+end_pthread_attr_getstack_check_part1
19   works=yes
20
21 cat >>confdefs.h <<\_ACEOF
22 #define PTHREAD_ATTR_GETSTACK_WORKS 1
23 _ACEOF
24
25+cat >> /dev/null << end_pthread_attr_getstack_check_part2
26 else
27   $as_echo "$as_me: program exited with status $ac_status" >&5
28 $as_echo "$as_me: failed program was:" >&5
29@@ -35138,6 +35143,7 @@ fi
30 rm -rf conftest.dSYM
31 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32 fi
33+end_pthread_attr_getstack_check_part2
34
35
36 CFLAGS="$old_CFLAGS"
37diff --git a/configure.in b/configure.in
38index 217ac83..c4c16fc 100644
39--- a/configure.in
40@@ -854,7 +854,7 @@ main (void)
41 }]])],
42     [guile_cv_use_csqrt=yes],
43     [guile_cv_use_csqrt="no, glibc 2.3 bug"],
44- [guile_cv_use_csqrt="yes, hopefully (cross-compiling)"])])
45+ [guile_cv_use_csqrt="no, Ben NanoNote (cross-compiling)"])])
46   case $guile_cv_use_csqrt in
47     yes*)
48       AC_DEFINE(HAVE_USABLE_CSQRT, 1, [Define to 1 if csqrt is bug-free])

Archive Download the corresponding diff file



interactive