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