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