cond_* and sigaction need to be compiled with -fexceptions
[kopensolaris-gnu/glibc.git] / nptl / sysdeps / unix / sysv / solaris2 / kopensolaris-gnu / Makefile
1 ifeq ($(subdir),nptl)
2 headers += synch.h bits/synch.h sys/synch.h thread.h
3 sysdep_routines += register-atfork unregister-atfork libc_pthread_init \
4     libc_multiple_threads fastlock
5 libpthread-sysdep_routines += pt-fork fastlock clock_gettime \
6     sys_lwp_mutex_timedlock sys_lwp_mutex_trylock sys_lwp_mutex_unlock \
7     sys_lwp_mutex_register sys_lwp_cond_wait sys_lwp_cond_signal \
8     sys_lwp_cond_broadcast sys_lwp_sema_post sys_lwp_sema_trywait \
9     sys_lwp_sema_timedwait sys_lwp_create sys_lwp_wait sys_lwp_exit \
10     sys_lwp_kill sys_lwp_suspend sys_lwp_continue sys_lwp_sigmask
11
12 # solaris threads/synch
13 libpthread-routines += mutex_init mutex_lock mutex_trylock mutex_unlock \
14     mutex_destroy mutex_timedlock mutex_consistent cond_init cond_wait \
15     cond_timedwait cond_reltimedwait cond_signal cond_broadcast cond_destroy \
16     rwlock_init rwlock_destroy rw_rdlock rw_wrlock rw_unlock rw_tryrdlock \
17     rw_trywrlock rw_timedrdlock rw_timedwrlock sema_init sema_destroy \
18     sema_wait sema_trywait sema_post sema_timedwait thr_create thr_join \
19     thr_exit thr_self thr_main thr_yield thr_sigsetmask thr_getspecific \
20     thr_setspecific thr_keycreate thr_min_stack thr_getconcurrency \
21     thr_setconcurrency
22 endif
23
24 ifeq ($(subdir),posix)
25 CFLAGS-fork.c = -D_IO_MTSAFE_IO
26 sysdep_routines += sys_forkx
27 endif
28
29 # Needed in both the signal and nptl subdir.
30 # We also need to enable exceptions.
31 CFLAGS-sigaction.c = -DWRAPPER_INCLUDE='<nptl/sigaction.c>' -fexceptions
32
33 # The following are cancellation points.  Some of the functions can
34 # block and therefore temporarily enable asynchronous cancellation.
35 # Those must be compiled asynchronous unwind tables.
36 CFLAGS-cond_reltimedwait.c = -fexceptions -fasynchronous-unwind-tables
37 CFLAGS-cond_timedwait.c = -fexceptions -fasynchronous-unwind-tables
38 CFLAGS-cond_wait.c = -fexceptions -fasynchronous-unwind-tables