24ba3d1c4d70a86f28c5030c3da4ca28cc2003ec
[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 sys/lwp.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_reltimedlock mutex_consistent \
15     _mutex_held cond_init cond_wait cond_timedwait cond_reltimedwait \
16     cond_signal cond_broadcast cond_destroy rwlock_init rwlock_destroy \
17     rw_rdlock rw_wrlock rw_unlock rw_tryrdlock rw_trywrlock rw_timedrdlock \
18     rw_timedwrlock sema_init sema_destroy sema_wait sema_trywait sema_post \
19     sema_timedwait thr_create thr_join thr_exit thr_self thr_main thr_yield \
20     thr_sigsetmask thr_getspecific thr_setspecific thr_keycreate \
21     thr_keycreate_once thr_min_stack thr_getconcurrency thr_setconcurrency \
22     thr_continue thr_suspend thr_getprio thr_setprio thr_stksegment \
23     _lwp_sema_init _lwp_info __nthreads pthread_cond_reltimedwait_np \
24     pthread_mutex_reltimedlock_np
25 endif
26
27 ifeq ($(subdir),posix)
28 CFLAGS-fork.c = -D_IO_MTSAFE_IO
29 sysdep_routines += sys_forkx
30 endif
31
32 # Needed in both the signal and nptl subdir.
33 # We also need to enable exceptions.
34 CFLAGS-sigaction.c = -DWRAPPER_INCLUDE='<nptl/sigaction.c>' -fexceptions
35
36 # The following are cancellation points.  Some of the functions can
37 # block and therefore temporarily enable asynchronous cancellation.
38 # Those must be compiled asynchronous unwind tables.
39 CFLAGS-cond_reltimedwait.c = -fexceptions -fasynchronous-unwind-tables
40 CFLAGS-cond_timedwait.c = -fexceptions -fasynchronous-unwind-tables
41 CFLAGS-cond_wait.c = -fexceptions -fasynchronous-unwind-tables