summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/Makefile2
-rw-r--r--ldso/libdl/Makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile
index f2707d820..c304b0344 100644
--- a/ldso/ldso/Makefile
+++ b/ldso/ldso/Makefile
@@ -83,7 +83,7 @@ $(LDSO_FULLNAME): $(OBJS) $(DLINK_OBJS)
$(INSTALL) -m 755 $(LDSO_FULLNAME) $(TOPDIR)lib
$(LN) -sf $(LDSO_FULLNAME) $(TOPDIR)lib/$(UCLIBC_LDSO)
-$(COBJS): %.o : %.c
+$(COBJS): %.o : %.c $(TOPDIR)ldso/include/*.h
$(CC) $(XXFLAGS) -I../libdl -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index a692a68bb..cced47909 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -62,11 +62,11 @@ $(LIBDL): $(OBJS)
$(LIBDL_PIC): $(PIC_OBJS)
$(AR) $(ARFLAGS) $(LIBDL_PIC) $(PIC_OBJS)
-libdl.o: libdl.c
+libdl.o: libdl.c $(TOPDIR)ldso/include/*.h
$(CC) $(XXFLAGS_NOPIC) -c libdl.c -o libdl.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
-libdl_pic.o: libdl.c
+libdl_pic.o: libdl.c ../include/*.h
$(CC) $(XXFLAGS) -c libdl.c -o libdl_pic.o
$(STRIPTOOL) -x -R .note -R .comment $*.o