summaryrefslogtreecommitdiff
path: root/librt
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-04-14 23:58:41 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-04-14 23:58:41 +0200
commit19c4bf396ead620a84051102e7f0914200fcc5e0 (patch)
treecc6565b21f94c13c40618cc89db251da6f98bbd6 /librt
parent04cd09eb3a4856e9dc31112170290e3baa3bf9fb (diff)
librt: Rephrase librt.so library dependencies
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'librt')
-rw-r--r--librt/Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/librt/Makefile.in b/librt/Makefile.in
index e211bd2e7..2fde48caa 100644
--- a/librt/Makefile.in
+++ b/librt/Makefile.in
@@ -61,11 +61,14 @@ lib-a-y += $(top_builddir)lib/librt.a
lib-so-y += $(top_builddir)lib/librt.so
endif
+librt-dep-y := $(libc.depend)
+librt-dep-$(UCLIBC_HAS_THREADS_NATIVE) += $(libpthread.depend) $(libdl.depend)
+
# for NPTL we need SHARED regardless of DOPIC
ifeq ($(if $(UCLIBC_HAS_THREADS_NATIVE),,$(DOPIC)),y)
-$(top_builddir)lib/librt.so: $(top_builddir)lib/librt.a $(libc.depend)
+$(top_builddir)lib/librt.so: $(top_builddir)lib/librt.a $(librt-dep-y)
else
-$(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc.depend) $(libpthread.depend) $(libdl.depend)
+$(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(librt-dep-y)
endif
$(call link.so,$(librt_FULL_NAME),$(ABI_VERSION))