Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/tls Link static test program with LDSTATIC to...



details:   https://anonhg.NetBSD.org/src/rev/11e69edf2784
branches:  trunk
changeset: 345971:11e69edf2784
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jun 18 12:12:09 2016 +0000

description:
Link static test program with LDSTATIC to deal with PIE.

diffstat:

 tests/lib/libc/tls/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r df2509a796d2 -r 11e69edf2784 tests/lib/libc/tls/Makefile
--- a/tests/lib/libc/tls/Makefile       Sat Jun 18 06:36:18 2016 +0000
+++ b/tests/lib/libc/tls/Makefile       Sat Jun 18 12:12:09 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/11/18 01:32:33 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2016/06/18 12:12:09 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -16,7 +16,8 @@
 
 SRCS.t_tls_static=     t_tls_static.c t_tls_static_helper.c
 DPADD.t_tls_static+=   ${LIBPTHREAD}
-LDADD.t_tls_static+=   -lpthread -static
+LDADD.t_tls_static+=   -lpthread
+LDSTATIC.t_tls_static+=        -static
 DPADD.t_tls_dynamic+=  ${LIBPTHREAD} ${DSODIR}/libh_tls_dynamic.so
 LDADD.t_tls_dynamic+=  -lpthread \
                        -Wl,-rpath,${TESTSDIR} -L${DSODIR} -lh_tls_dynamic



Home | Main Index | Thread Index | Old Index