(LDFLAGS-rt.so): Use shared thread library as librt's filter.
authordrepper <drepper>
Wed, 12 Sep 2001 21:29:55 +0000 (21:29 +0000)
committerdrepper <drepper>
Wed, 12 Sep 2001 21:29:55 +0000 (21:29 +0000)
rt/Makefile

index 47ce1fb..df766f4 100644 (file)
@@ -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