summaryrefslogtreecommitdiff
path: root/ldso/libdl/Makefile
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-08-19 16:44:19 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-08-19 16:44:19 +0000
commit721201d6e3ae4996e6a44d350844a47f325c44ab (patch)
treebeb6dded20ea60145f70c3dac66e089c20545fbe /ldso/libdl/Makefile
parent7761b1079114405c4cf63430576c33f60f1ab86f (diff)
Fix dependencies.
Diffstat (limited to 'ldso/libdl/Makefile')
-rw-r--r--ldso/libdl/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 471b8b554..3d1c2ebe4 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -53,6 +53,8 @@ all: $(OBJS) $(LIBDL) shared
$(LIBDL): ar-target
+$(LIBDL_PIC): ar-target
+
ar-target: $(OBJS) $(PIC_OBJS)
$(AR) $(ARFLAGS) $(LIBDL) ../ldso/$(TARGET_ARCH)/resolve.o $(OBJS)
$(AR) $(ARFLAGS) $(LIBDL_PIC) $(PIC_OBJS)
@@ -71,7 +73,7 @@ libdl_pic.o: libdl.c
$(OBJ): Makefile
-shared: $(TOPDIR)lib/$(LIBDL_SHARED_FULLNAME)
+shared: $(LIBDL_PIC)
$(LD) $(LDFLAGS) -soname=$(LIBDL_SHARED).$(MAJOR_VERSION) \
-o $(LIBDL_SHARED_FULLNAME) -fini dl_cleanup --whole-archive $(LIBDL_PIC) \
--no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \