summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-19 23:41:09 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-19 23:41:09 +0000
commit7c583eee29cefc7e017fb68cb700d623138e0ec3 (patch)
tree666abe44f86353b23a0c44647afbbad714304ee7
parentff680cf9e8ee1db042c9622e463b0700d6b627ae (diff)
clean up dependencies so libraries are only rebuilt when needed and so that parallel build works correctly
-rw-r--r--ldso/libdl/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 37019aff3..a692a68bb 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -49,19 +49,18 @@ CSRC=libdl.c
OBJS=libdl.o
PIC_OBJS=libdl_pic.o
-all: $(OBJS) $(LIBDL) shared
+all: $(LIBDL) $(LIBDL_PIC)
-$(LIBDL): ar-target
+ar-target: $(LIBDL) $(LIBDL_PIC)
-$(LIBDL_PIC): ar-target
-
-ar-target: $(OBJS) $(PIC_OBJS)
+$(LIBDL): $(OBJS)
$(AR) $(ARFLAGS) $(LIBDL) ../ldso/$(TARGET_ARCH)/resolve.o $(OBJS)
- $(AR) $(ARFLAGS) $(LIBDL_PIC) $(PIC_OBJS)
$(INSTALL) -d $(TOPDIR)lib
$(RM) $(TOPDIR)lib/$(LIBDL)
$(INSTALL) -m 644 $(LIBDL) $(TOPDIR)lib
+$(LIBDL_PIC): $(PIC_OBJS)
+ $(AR) $(ARFLAGS) $(LIBDL_PIC) $(PIC_OBJS)
libdl.o: libdl.c
$(CC) $(XXFLAGS_NOPIC) -c libdl.c -o libdl.o
@@ -71,8 +70,6 @@ libdl_pic.o: libdl.c
$(CC) $(XXFLAGS) -c libdl.c -o libdl_pic.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
-$(OBJ): Makefile
-
shared: $(LIBDL_PIC)
$(LD) $(LDFLAGS) -soname=$(LIBDL_SHARED).$(MAJOR_VERSION) \
-o $(LIBDL_SHARED_FULLNAME) -fini dl_cleanup --whole-archive $(LIBDL_PIC) \