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