[PATCH] Add -Wl,-F,libpthread.so.0 to librt
Jakub Jelinek
jakub@redhat.com
Wed Sep 12 05:46:00 GMT 2001
Hi!
Following patch is a quick solution for the librt problems (both wrong
SIGRTMIN value and that we have to use the inefficient weak symbol
handling). It adds libpthread.so.0 both into DT_NEEDED and DT_FILTER, since
otherwise linker does not create versioned undefined references for
libpthread stuff etc. It should not matter much, since it will be found in
_dl_map_object quickly as already opened and just moved to front.
2001-09-12 Jakub Jelinek <jakub@redhat.com>
* rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
filter.
--- libc/rt/Makefile.jj Thu Aug 23 18:49:01 2001
+++ libc/rt/Makefile Wed Sep 12 11:49:42 2001
@@ -54,6 +54,10 @@ include ../Rules
$(objpfx)librt.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a \
$(shared-thread-library)
+ifeq (yes,$(have-thread-library))
+LDFLAGS-rt.so += -Wl,-F,lib$(libprefix)$(patsubst lib%.so,%,$(notdir $(shared-thread-library))).so$($(notdir $(shared-thread-library))-version)
+endif
+
ifeq (yes,$(build-shared))
$(addprefix $(objpfx),$(tests)): $(objpfx)librt.so $(shared-thread-library)
else
Jakub
More information about the Libc-hacker
mailing list