13eee258dSEnji Cooper# $FreeBSD$ 23eee258dSEnji Cooper 33eee258dSEnji CooperTESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen 43eee258dSEnji Cooper 53eee258dSEnji Cooper.include <bsd.own.mk> 63eee258dSEnji Cooper 73eee258dSEnji CooperTESTSDIR= ${TESTSBASE}/lib/libthr/dlopen 83eee258dSEnji Cooper 93eee258dSEnji CooperCFLAGS+= -DTESTDIR=\"${TESTSDIR:Q}/\" 103eee258dSEnji CooperLDFLAGS+= -L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR} 113eee258dSEnji Cooper 123eee258dSEnji Cooper.if !defined(NO_PIC) 133eee258dSEnji CooperSUBDIR+= dso 143eee258dSEnji Cooper 153eee258dSEnji CooperNETBSD_ATF_TESTS_C= dlopen_test 163eee258dSEnji CooperNETBSD_ATF_TESTS_C+= main_pthread_create_test 173eee258dSEnji Cooper# XXX: this blocks running the testcase 183eee258dSEnji Cooper#NETBSD_ATF_TESTS_C+= dso_pthread_create_test 193eee258dSEnji Cooper 203eee258dSEnji Cooper.for t in dlopen_test main_pthread_create_test 21*eacae6dcSBryan DreweryLIBADD.${t}+= pthread 223eee258dSEnji Cooper.endfor 233eee258dSEnji Cooper.endif 243eee258dSEnji Cooper 253eee258dSEnji Cooper.include <netbsd-tests.test.mk> 263eee258dSEnji Cooper 273eee258dSEnji Cooper.include <bsd.test.mk> 28