about summary refs log tree commit diff
path: root/nptl/Makefile
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-04-16 14:06:47 +1000
committerCarlos O'Donell <carlos_odonell@mentor.com>2012-05-02 20:32:50 -0400
commitd4c2917fc5091dae7ab1b30c165becb70d3c3453 (patch)
tree47b1f1456ffdd0cc9a41879c5d09c9a8cd221057 /nptl/Makefile
parentd77f993f648216a1c697058ce541263d2a562490 (diff)
downloadglibc-d4c2917fc5091dae7ab1b30c165becb70d3c3453.tar.gz
glibc-d4c2917fc5091dae7ab1b30c165becb70d3c3453.tar.xz
glibc-d4c2917fc5091dae7ab1b30c165becb70d3c3453.zip
Fix test-suite failues with -Wl,--as-needed
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'nptl/Makefile')
-rw-r--r--nptl/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 09acd8a481..07a10225f1 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -458,6 +458,7 @@ $(objpfx)tst-tls4: $(libdl) $(shared-thread-library)
 $(objpfx)tst-tls4.out: $(objpfx)tst-tls4moda.so $(objpfx)tst-tls4modb.so
 
 $(objpfx)tst-tls5: $(objpfx)tst-tls5mod.so $(shared-thread-library)
+LDFLAGS-tst-tls5 = $(no-as-needed)
 LDFLAGS-tst-tls5mod.so = -Wl,-soname,tst-tls5mod.so
 
 ifeq ($(build-shared),yes)
@@ -503,7 +504,7 @@ $(objpfx)tst-clock2: $(common-objpfx)rt/librt.a
 $(objpfx)tst-rwlock14: $(common-objpfx)rt/librt.a
 endif
 
-LDFLAGS-tst-cancel24 = -lstdc++
+LDFLAGS-tst-cancel24 = $(no-as-needed) -lstdc++
 
 extra-B-pthread.so = -B$(common-objpfx)nptl/
 $(objpfx)libpthread.so: $(addprefix $(objpfx),$(crti-objs) $(crtn-objs))