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