diff options
Diffstat (limited to 'librt')
-rw-r--r-- | librt/Makefile.in | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/librt/Makefile.in b/librt/Makefile.in index 55d006dfd..ec405e556 100644 --- a/librt/Makefile.in +++ b/librt/Makefile.in @@ -19,7 +19,11 @@ librt_OUT := $(top_builddir)librt librt_SRC := $(wildcard $(librt_DIR)/*.c) librt_OBJ := $(patsubst $(librt_DIR)/%.c,$(librt_OUT)/%.o,$(librt_SRC)) +ifeq ($(DOPIC),y) +librt-a-y := $(librt_OBJ:.o=.os) +else librt-a-y := $(librt_OBJ) +endif librt-so-y := $(librt_OBJ:.o=.os) librt-multi-y += $(librt_SRC) @@ -28,7 +32,11 @@ lib-a-y += $(top_builddir)lib/librt.a lib-so-y += $(top_builddir)lib/librt.so objclean-y += librt_clean -$(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc-so-dep) +ifeq ($(DOPIC),y) +$(top_builddir)lib/librt.so: $(top_builddir)lib/librt.a $(libc) +else +$(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc) +endif $(call link.so,$(librt_FULL_NAME),$(MAJOR_VERSION)) $(librt_OUT)/librt_so.a: $(librt-so-y) @@ -36,16 +44,10 @@ $(librt_OUT)/librt_so.a: $(librt-so-y) $(do_strip) $(do_ar) -ifeq ($(DOPIC),y) -$(top_builddir)lib/librt.a: $(librt-a-y:.o=.os) -else -$(top_builddir)lib/librt.a: $(librt-a-y) $(librt_OUT)/librt_so.a -endif +$(top_builddir)lib/librt.a: $(librt-a-y) $(Q)$(INSTALL) -d $(dir $@) $(Q)$(RM) $@ -ifneq ($(DOPIC),y) $(do_strip) -endif $(do_ar) librt_clean: |