Deal with all objdir methods.

This commit is contained in:
skrll 2011-03-10 14:31:07 +00:00
parent de4cf97515
commit 11c999cbce

View File

@ -1,15 +1,17 @@
# $NetBSD: Makefile,v 1.1 2011/03/09 23:10:07 joerg Exp $
# $NetBSD: Makefile,v 1.2 2011/03/10 14:31:07 skrll Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/lib/libc/tls
SUBDIR+= dso
DSODIR!= cd ${.CURDIR}/../tls_dso && ${PRINTOBJDIR}
TESTS_C+= t_tls_static t_tls_dynamic t_tls_dlopen
SRCS.t_tls_static= t_tls_static.c t_tls_static_helper.c
LDADD.t_tls_static+= -lpthread -static
LDADD.t_tls_dynamic+= -lpthread \
-Wl,-rpath,${TESTSDIR} -L../tls_dso -lh_tls_dynamic
-Wl,-rpath,${TESTSDIR} -L${DSODIR} -lh_tls_dynamic
LDADD.t_tls_dlopen+= -lpthread -Wl,-rpath,${TESTSDIR} -Wl,-export-dynamic
.include <bsd.test.mk>