1 # $NetBSD: Makefile,v 1.4 2011/11/18 01:32:33 joerg Exp $
5 TESTSDIR
= ${TESTSBASE}/lib
/libc
/tls
6 .if
(${MKPIC} == "yes")
10 TESTS_C
+= t_tls_static
11 .if
(${MKPIC} == "yes")
12 TESTS_C
+= t_tls_dynamic t_tls_dlopen
15 DSODIR
!= cd
${.CURDIR
}/..
/tls_dso
&& ${PRINTOBJDIR}
17 SRCS.t_tls_static
= t_tls_static.c t_tls_static_helper.c
18 DPADD.t_tls_static
+= ${LIBPTHREAD}
19 LDADD.t_tls_static
+= -lpthread
-static
20 DPADD.t_tls_dynamic
+= ${LIBPTHREAD} ${DSODIR}/libh_tls_dynamic.so
21 LDADD.t_tls_dynamic
+= -lpthread \
22 -Wl
,-rpath
,${TESTSDIR} -L
${DSODIR} -lh_tls_dynamic
23 DPADD.t_tls_dlopen
+= ${LIBPTHREAD}
24 LDADD.t_tls_dlopen
+= -lpthread
-Wl
,-rpath
,${TESTSDIR} -Wl
,-export-dynamic
26 .
include <bsd.
test.mk
>