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