summaryrefslogtreecommitdiff
path: root/librt/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'librt/Makefile.in')
-rw-r--r--librt/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/librt/Makefile.in b/librt/Makefile.in
index f6433d30b..c91552acc 100644
--- a/librt/Makefile.in
+++ b/librt/Makefile.in
@@ -16,6 +16,7 @@ librt_FULL_NAME := librt-$(VERSION).so
librt_DIR := $(top_srcdir)librt
librt_OUT := $(top_builddir)librt
+ifeq ($(UCLIBC_HAS_REALTIME),y)
librt_SRC := $(wildcard $(librt_DIR)/*.c)
librt_OBJ := $(patsubst $(librt_DIR)/%.c,$(librt_OUT)/%.o,$(librt_SRC))
@@ -28,7 +29,7 @@ librt-so-y += $(librt_OBJ:.o=.os)
lib-a-y += $(top_builddir)lib/librt.a
lib-so-y += $(top_builddir)lib/librt.so
-objclean-y += librt_clean
+endif
ifeq ($(DOPIC),y)
$(top_builddir)lib/librt.so: $(top_builddir)lib/librt.a $(libc.depend)
@@ -48,5 +49,7 @@ $(top_builddir)lib/librt.a: $(librt-a-y)
$(do_strip)
$(do_ar)
+objclean-y += librt_clean
+
librt_clean:
$(RM) $(librt_OUT)/*.{o,os,a}