Browse Source

librt: Fix librt.so depends for !NPTL

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 9 years ago
parent
commit
04cd09eb3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      librt/Makefile.in

+ 2 - 2
librt/Makefile.in

@@ -61,8 +61,8 @@ lib-a-y += $(top_builddir)lib/librt.a
 lib-so-y += $(top_builddir)lib/librt.so
 endif
 
-
-ifeq ($(DOPIC)$(UCLIBC_HAS_THREADS_NATIVE),yn)
+# 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)
 else
 $(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc.depend) $(libpthread.depend) $(libdl.depend)