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 21LIBADD.tls_static_test+= pthread 22LDFLAGS.tls_static_test+= -static 23SRCS.tls_static_test= t_tls_static.c t_tls_static_helper.c 24 25DPADD.tls_dynamic_test+= ${DSODIR}/libh_tls_dynamic.so 26LDADD.tls_dynamic_test+= -lh_tls_dynamic 27LDFLAGS.tls_dynamic_test+= -Wl,-rpath,${TESTSDIR} -L${DSODIR} 28LIBADD.tls_dynamic_test+= pthread 29 30LIBADD.tls_dlopen_test+= pthread 31LDFLAGS.tls_dlopen_test+= -Wl,-rpath,${TESTSDIR} -Wl,-export-dynamic 32 33.include <bsd.test.mk> 34