1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5TESTSDIR= ${TESTSBASE}/lib/libc/tls 6.if !defined(NO_PIC) 7SUBDIR+= dso 8.endif 9 10# TODO: doesn't link properly (for some odd reason it's trying to link in 11# libatf.so) 12#NETBSD_ATF_TESTS_C= tls_static_test 13.if !defined(NO_PIC) 14NETBSD_ATF_TESTS_C+= tls_dlopen_test 15NETBSD_ATF_TESTS_C+= tls_dynamic_test 16.endif 17 18.include "../Makefile.netbsd-tests" 19 20DSODIR= ${.OBJDIR}/../tls_dso 21 22DPADD.tls_static_test+= ${LIBPTHREAD} 23LDADD.tls_static_test+= -lpthread 24LDFLAGS.tls_static_test+= -static 25SRCS.tls_static_test= t_tls_static.c t_tls_static_helper.c 26 27DPADD.tls_dynamic_test+= ${LIBPTHREAD} ${DSODIR}/libh_tls_dynamic.so 28LDADD.tls_dynamic_test+= -lpthread -lh_tls_dynamic 29LDFLAGS.tls_dynamic_test+= -Wl,-rpath,${TESTSDIR} -L${DSODIR} 30 31DPADD.tls_dlopen_test+= ${LIBPTHREAD} 32LDADD.tls_dlopen_test+= -lpthread 33LDFLAGS.tls_dlopen_test+= -Wl,-rpath,${TESTSDIR} -Wl,-export-dynamic 34 35.include <bsd.test.mk> 36