Use rtld's TLS interface to allocate tcb.
[dragonfly.git] / lib / libthread_xu / Makefile
1 # $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
2 # $DragonFly: src/lib/libthread_xu/Makefile,v 1.1 2005/02/01 12:38:26 davidxu Exp $
3 #
4 # All library objects contain FreeBSD revision strings by default; they may be
5 # excluded as a space-saving measure.  To produce a library that does
6 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
7 # below.  Note, there are no IDs for syscall stubs whose sources are generated.
8 # To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
9 # (for system call stubs) to CFLAGS below.  -DSYSLIBC_SCCS affects just the
10 # system call stubs.
11 LIB=thread_xu
12 SHLIB_MAJOR= 1
13 SHLIB_MINOR= 0
14 CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
15 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
16         -I${.CURDIR}/../../include
17 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
18 CFLAGS+=-I${.CURDIR}/sys
19 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
20 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
21 CFLAGS+=-Winline
22
23 CFLAGS+= -g
24
25 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
26
27 LDFLAGS=--version-script=${.CURDIR}/pthread.map
28
29 # enable extra internal consistancy checks
30 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
31
32 PRECIOUSLIB=    yes
33
34 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
35 .include "${.CURDIR}/sys/Makefile.inc"
36 .include "${.CURDIR}/thread/Makefile.inc"
37
38 .include <bsd.lib.mk>