From 74604ed9c419ab380cacaaeb78e4c26f9f37e0ad Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 25 Sep 2010 01:57:47 +0000 Subject: To support stack unwinding for cancellation points, add -fexceptions flag for them, two functions _pthread_cancel_enter and _pthread_cancel_leave are added to let thread enter and leave a cancellation point, it also makes it possible that other functions can be cancellation points in libraries without having to be rewritten in libthr. --- lib/libthr/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libthr/Makefile') diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile index 8b7af3a..a51b446 100644 --- a/lib/libthr/Makefile +++ b/lib/libthr/Makefile @@ -26,9 +26,7 @@ CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_CPUARCH} CFLAGS+=-I${.CURDIR}/../libthread_db CFLAGS+=-Winline -LIBTHR_UNWIND_STACK=yes - -.ifdef LIBTHR_UNWIND_STACK +.ifndef NO_THREAD_UNWIND_STACK CFLAGS+=-I${.CURDIR}/../../contrib/gcc -fexceptions CFLAGS+=-D_PTHREAD_FORCED_UNWIND .endif -- cgit v1.1