1 2TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen 3 4WARNS?= 2 5 6.include <bsd.own.mk> 7 8TESTSDIR= ${TESTSBASE}/lib/libthr/dlopen 9 10CFLAGS+= -DTESTDIR=\"${TESTSDIR:Q}/\" 11LDFLAGS+= -L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR} 12 13.if !defined(NO_PIC) 14SUBDIR+= dso 15 16NETBSD_ATF_TESTS_C= dlopen_test 17NETBSD_ATF_TESTS_C+= main_pthread_create_test 18# XXX: this blocks running the testcase 19#NETBSD_ATF_TESTS_C+= dso_pthread_create_test 20 21.for t in dlopen_test main_pthread_create_test 22LIBADD.${t}+= pthread 23.endfor 24.endif 25 26.include <netbsd-tests.test.mk> 27 28.include <bsd.test.mk> 29