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