2.5-18.1
[glibc.git] / rtkaio / sysdeps / pthread / Makefile
blob7ced3eb5a9c494377637c7874694d26151553b33
1 ifeq ($(filter nptl,$(sorted-subdirs)),nptl)
3 ifeq ($(subdir),rtkaio)
4 librtkaio-sysdep_routines += kaio_timer_routines librtkaio-cancellation rtkaio-unwind-resume
5 librtkaio-shared-only-routines += rtkaio-unwind-resume
6 tests += tst-cancel17 tst-cancelx17
7 CPPFLAGS-kaio_timer_routines.c = -I../nptl
8 CFLAGS-librtkaio-cancellation.c += -fexceptions -fasynchronous-unwind-tables
9 CFLAGS-rtkaio-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
10 CFLAGS-tst-cancelx17.c += -fexceptions
12 ifeq (yes,$(build-shared))
13 $(objpfx)tst-timer: $(objpfx)librtkaio.so $(shared-thread-library)
14 else
15 $(objpfx)tst-timer: $(objpfx)librtkaio.a $(static-thread-library)
16 endif
18 ifeq ($(have-forced-unwind),yes)
19 tests += tst-mqueue8x
20 CFLAGS-tst-mqueue8x.c += -fexceptions
21 endif
22 endif
24 endif
26 ifeq ($(filter linuxthreads,$(sorted-subdirs)),linuxthreads)
28 ifeq ($(subdir),rtkaio)
29 librtkaio-sysdep_routines += kaio_timer_routines
30 CPPFLAGS += -DBROKEN_THREAD_SIGNALS
32 ifeq (yes,$(build-shared))
33 $(objpfx)tst-timer: $(objpfx)librtkaio.so $(shared-thread-library)
34 else
35 $(objpfx)tst-timer: $(objpfx)librtkaio.a $(static-thread-library)
36 endif
37 endif
39 endif