diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-03-07 19:34:22 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-03-07 19:34:22 +0000 |
commit | e7dbb1bec3be35897acb18aa277807ed276384c5 (patch) | |
tree | 2b5ca037a3d87f7baa4cfd9991e3c405e1a0df13 /nptl/sysdeps/pthread/configure.in | |
parent | d1d3431a3a9dd14501eedb701436bd5005b1db7d (diff) | |
download | glibc-e7dbb1bec3be35897acb18aa277807ed276384c5.zip glibc-e7dbb1bec3be35897acb18aa277807ed276384c5.tar.gz glibc-e7dbb1bec3be35897acb18aa277807ed276384c5.tar.bz2 |
Weaken two NPTL configure link tests to compile tests.
Diffstat (limited to 'nptl/sysdeps/pthread/configure.in')
-rw-r--r-- | nptl/sysdeps/pthread/configure.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl/sysdeps/pthread/configure.in b/nptl/sysdeps/pthread/configure.in index 17f18f0..413af96 100644 --- a/nptl/sysdeps/pthread/configure.in +++ b/nptl/sysdeps/pthread/configure.in @@ -23,7 +23,7 @@ dnl Iff <unwind.h> is available, make sure it is the right one and it dnl contains struct _Unwind_Exception. AC_CACHE_CHECK(dnl for forced unwind support, libc_cv_forced_unwind, [dnl -AC_TRY_LINK([#include <unwind.h>], [ +AC_TRY_COMPILE([#include <unwind.h>], [ struct _Unwind_Exception exc; struct _Unwind_Context *context; _Unwind_GetCFA (context)], @@ -34,11 +34,11 @@ dnl Check for C cleanup handling. old_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror -fexceptions" AC_CACHE_CHECK([for C cleanup handling], libc_cv_c_cleanup, [dnl - AC_TRY_LINK([ -#include <stdio.h> + AC_TRY_COMPILE([ +extern void some_function (void); void cl (void *a) { }], [ int a __attribute__ ((cleanup (cl))); - puts ("test")], + some_function ()], libc_cv_c_cleanup=yes, libc_cv_c_cleanup=no)]) CFLAGS="$old_CFLAGS" if test $libc_cv_c_cleanup = no; then |