summaryrefslogtreecommitdiff
path: root/nptl
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
parentd77f993f648216a1c697058ce541263d2a562490 (diff)
Fix test-suite failues with -Wl,--as-needed
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/Makefile3
2 files changed, 7 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index e3075ab892..4d917bc2c2 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-02 Allan McRae <allan@archlinux.org>
+
+ * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed).
+ (LDFLAGS-tst-cancel24): Likewise.
+
2012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* sysdeps/i386/pthread_spin_lock.S: New.
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))