@@ -102,9 +102,11 @@ $(objpfx)$(lib).so: $(firstword $($(lib)-map) \
$(filter $(lib).map, \
$(version-maps))))
ifneq ($(ld-zunique),yes)
+ifneq ($(lib),libpthread)
$(objpfx)$(lib).so: $(common-objpfx)/elf/dynamic-notes.os
endif
endif
+endif
endif
@@ -205,9 +205,6 @@ libc-link.so = $(common-objpfx)libc.so
extra-B-pthread.so = -B$(common-objpfx)htl/
LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst
-ifeq ($(ld-zunique),yes)
-LDFLAGS-pthread.so += -Wl,-z,unique
-endif
include ../Rules
@@ -373,9 +373,6 @@ CPPFLAGS-tst-pthread-gdb-attach-static.c := \
tst-pthread-gdb-attach-no-pie = yes
LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst
-ifeq ($(ld-zunique),yes)
-LDFLAGS-pthread.so += -Wl,-z,unique
-endif
tests += tst-cancelx7 tst-cancelx17 tst-cleanupx4