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