aboutsummaryrefslogtreecommitdiff
path: root/librt
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-17 19:27:00 +0200
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-17 19:31:27 +0200
commit486fbd8d6695a874fb023571919d483629b4964f (patch)
tree53d64c24db5a06de7b05a3297f876c1e32fdcf64 /librt
parent6af28ff46002a5d3b860155f505ecc411a229b26 (diff)
downloaduClibc-486fbd8d6695a874fb023571919d483629b4964f.tar.gz
uClibc-486fbd8d6695a874fb023571919d483629b4964f.tar.bz2
librt: fix linking WRT pthreads
Linking order matters. Always did and still does today. See how this makes the ugly and wrong hack to put pthread symbols into librt _and_ linking librt against pthread moot? Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'librt')
-rw-r--r--librt/Makefile.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/librt/Makefile.in b/librt/Makefile.in
index d490af509..6eb508cb2 100644
--- a/librt/Makefile.in
+++ b/librt/Makefile.in
@@ -10,12 +10,11 @@ subdirs += librt
CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS)
LDFLAGS-librt.so := $(LDFLAGS)
+LIBS-librt.so := $(LIBS)
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
-LDFLAGS-librt.so += $(top_builddir)lib/libdl.so $(top_builddir)lib/libpthread.so
+LIBS-librt.so += $(top_builddir)lib/libdl.so $(top_builddir)lib/libpthread.so
endif
-LIBS-librt.so := $(LIBS)
-
librt_FULL_NAME := librt-$(VERSION).so
librt_DIR := $(top_srcdir)librt