From d4c2917fc5091dae7ab1b30c165becb70d3c3453 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 16 Apr 2012 14:06:47 +1000 Subject: Fix test-suite failues with -Wl,--as-needed Signed-off-by: Allan McRae --- nptl/ChangeLog | 5 +++++ nptl/Makefile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'nptl') 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 + + * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed). + (LDFLAGS-tst-cancel24): Likewise. + 2012-05-02 Paul Pluzhnikov * 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)) -- cgit v1.2.3