summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/misc/elf/dl-support.c4
-rw-r--r--librt/Makefile.in5
2 files changed, 6 insertions, 3 deletions
diff --git a/libc/misc/elf/dl-support.c b/libc/misc/elf/dl-support.c
index ce05f348a..64f2f7e44 100644
--- a/libc/misc/elf/dl-support.c
+++ b/libc/misc/elf/dl-support.c
@@ -11,14 +11,14 @@
*
*/
+#include <link.h>
+#include <elf.h>
#if USE_TLS
#include <assert.h>
#include <tls.h>
#include <ldsodefs.h>
#include <string.h>
#endif
-#include <link.h>
-#include <elf.h>
#if USE_TLS
diff --git a/librt/Makefile.in b/librt/Makefile.in
index 4db0fbce8..8fe78da5b 100644
--- a/librt/Makefile.in
+++ b/librt/Makefile.in
@@ -8,7 +8,10 @@
CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS)
LDFLAGS-librt.so := $(LDFLAGS)
-
+ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
+LDFLAGS-librt.so += $(LDFLAGS) $(top_builddir)lib/libdl.so \
+ $(top_builddir)lib/libpthread.so
+endif
LIBS-librt.so := $(LIBS)
librt_FULL_NAME := librt-$(VERSION).so