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