summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/pthread/unwind-forcedunwind.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2009-11-03 23:52:01 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2009-11-03 23:52:01 +0100
commit13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e (patch)
treee57278e0d283a1c6dd1d6e2623c531d84d12bb0e /nptl/sysdeps/pthread/unwind-forcedunwind.c
parentcc49a5a8837be1f9307b167d9bf4399798a847c9 (diff)
downloadglibc-13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e.tar.gz
Make name of libgcc_s library configurable
Diffstat (limited to 'nptl/sysdeps/pthread/unwind-forcedunwind.c')
-rw-r--r--nptl/sysdeps/pthread/unwind-forcedunwind.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/sysdeps/pthread/unwind-forcedunwind.c b/nptl/sysdeps/pthread/unwind-forcedunwind.c
index 402591f6e4..ae43f335e7 100644
--- a/nptl/sysdeps/pthread/unwind-forcedunwind.c
+++ b/nptl/sysdeps/pthread/unwind-forcedunwind.c
@@ -22,6 +22,7 @@
#include <unwind.h>
#include <pthreadP.h>
#include <sysdep.h>
+#include <libgcc_s.h>
static void *libgcc_s_handle;
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc);
@@ -49,7 +50,7 @@ pthread_cancel_init (void)
return;
}
- handle = __libc_dlopen ("libgcc_s.so.1");
+ handle = __libc_dlopen (LIBGCC_S_SO);
if (handle == NULL
|| (resume = __libc_dlsym (handle, "_Unwind_Resume")) == NULL
@@ -61,7 +62,7 @@ pthread_cancel_init (void)
|| ARCH_CANCEL_INIT (handle)
#endif
)
- __libc_fatal ("libgcc_s.so.1 must be installed for pthread_cancel to work\n");
+ __libc_fatal (LIBGCC_S_SO " must be installed for pthread_cancel to work\n");
PTR_MANGLE (resume);
libgcc_s_resume = resume;