summaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/pthread/Makefile
blob: 6f5a296e3ced87e1ddb34949a0d1a4bca86693cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ifeq ($(subdir),rt)
librt-sysdep_routines += timer_routines
CPPFLAGS += -DBROKEN_THREAD_SIGNALS

ifeq (yes,$(build-shared))
$(objpfx)tst-timer: $(objpfx)librt.so $(shared-thread-library)
else
$(objpfx)tst-timer: $(objpfx)librt.a $(static-thread-library)
endif
endif

ifeq ($(subdir),posix)
CFLAGS-confstr.c += -DLIBPTHREAD_VERSION="\"$(shell sed 's/\(.*\) by .*/\1/' ../linuxthreads/Banner)\""
endif

ifeq ($(subdir),csu)
# Find out the size of NPTL struct pthread
ifneq (,$(wildcard $(..)nptl/descr.h))
gen-as-const-headers += nptl-struct-pthread.sym
else
before-compile += $(common-objpfx)nptl-struct-pthread.h
common-generated += nptl-struct-pthread.h
$(common-objpfx)nptl-struct-pthread.h:
	@echo '#define NPTL_STRUCT_PTHREAD_SIZE 0' > $@
endif
endif