]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix elf/tst-tls9-static build
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 9 May 2014 18:35:28 +0000 (15:35 -0300)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 9 May 2014 18:35:28 +0000 (15:35 -0300)
This patch fixes the tst-tlsmod[5/6].so build in system that uses
-Wl,--as-needed as default in linker option.  Without this option
the testing shared library that does not have libc.so in DT_NEEDED
and the tst-tls9-static fails in architecture that use the
./sysdeps/unix/sysv/linux/<arch>/dl-static.c trick.

ChangeLog
elf/Makefile

index 2da8ae1ce9dce6c7931a9f3da060ded74fc93552..642d9f966244516546c48345f5d02e91934e1a97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
+       (tst-tlsmod6.so): Likewise.
+
 2014-05-09  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
index 3d675d7003b086f43b9d5f63a75b8331cde6b317..084abcaf2cc3d961e7d18a5889f3f9204a7b65a6 100644 (file)
@@ -521,8 +521,8 @@ LDFLAGS-tst-initordera2.so = $(no-as-needed)
 LDFLAGS-tst-initordera3.so = $(no-as-needed)
 LDFLAGS-tst-initordera4.so = $(no-as-needed)
 LDFLAGS-tst-initorderb2.so = $(no-as-needed)
-LDFLAGS-tst-tlsmod5.so = -nostdlib
-LDFLAGS-tst-tlsmod6.so = -nostdlib
+LDFLAGS-tst-tlsmod5.so = -nostdlib $(no-as-needed)
+LDFLAGS-tst-tlsmod6.so = -nostdlib $(no-as-needed)
 
 testobj1.so-no-z-defs = yes
 testobj3.so-no-z-defs = yes