diff options
author | David Xu <davidxu@FreeBSD.org> | 2010-09-25 01:57:47 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2010-09-25 01:57:47 +0000 |
commit | f4213b9006a6ccb41a3e5463038c6f142c10405f (patch) | |
tree | 7b4cd520f700d5e2d7a21bc8175c8574d209a3ce /lib/libthr/Makefile | |
parent | 1ea299ce0d3e449b1f65e0b3679e926038d3c6b8 (diff) | |
download | src-f4213b9006a6ccb41a3e5463038c6f142c10405f.tar.gz src-f4213b9006a6ccb41a3e5463038c6f142c10405f.zip |
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.
Notes
Notes:
svn path=/head/; revision=213153
Diffstat (limited to 'lib/libthr/Makefile')
-rw-r--r-- | lib/libthr/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile index 8b7af3acc724..a51b446573c9 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 |