libc/libpthread: Inject threadsafe locking callbacks for rtld.
[dragonfly.git] / lib / libthread_xu / Makefile
1 # $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
2
3 LIB=thread_xu
4 SHLIB_MAJOR= 2
5
6 # for now do not let the use of -flto
7 .if ${CFLAGS:M-flto}
8 CFLAGS+=        -fno-lto
9 LDFLAGS+=       -flto
10 .endif
11
12 CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
13 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
14         -I${.CURDIR}/../../include
15 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
16 CFLAGS+=-I${.CURDIR}/../libthread_db
17 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
18
19 # XXX this breaks threaded applications
20 #LDFLAGS=-Wl,-version-script=${.CURDIR}/pthread.map
21
22 # enable extra internal consistancy checks
23 CFLAGS+=-D_PTHREADS_INVARIANTS
24
25 PRECIOUSLIB=    yes
26
27 LIBDIR= /usr/lib/thread
28 NOPROFILE=      yes
29
30 WARNS?= 5 # keep for -Os, lots of -Winline
31
32 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
33 .include "${.CURDIR}/thread/Makefile.inc"
34
35 .include <bsd.lib.mk>