Module Name:    src
Committed By:   skrll
Date:           Thu Mar 10 14:31:07 UTC 2011

Modified Files:
        src/tests/lib/libc/tls: Makefile

Log Message:
Deal with all objdir methods.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/tls/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/tls/Makefile
diff -u src/tests/lib/libc/tls/Makefile:1.1 src/tests/lib/libc/tls/Makefile:1.2
--- src/tests/lib/libc/tls/Makefile:1.1	Wed Mar  9 23:10:07 2011
+++ src/tests/lib/libc/tls/Makefile	Thu Mar 10 14:31:07 2011
@@ -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>

Reply via email to