summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-03 10:40:21 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-03 10:40:21 +0000
commitae9317047b75e773c37e9aab2d8fff1652954e71 (patch)
tree59b271d690a12a68a4a691ce9c391db1df63577a /libc
parent213ba4a10631860a66f99fdb9542e588e3dbf334 (diff)
Be certain that
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile
index eb5d31323..8f5f505e6 100644
--- a/libc/sysdeps/linux/common/Makefile
+++ b/libc/sysdeps/linux/common/Makefile
@@ -48,7 +48,7 @@ all: $(STR_SYSCALLS) $(OBJ) $(LIBC)
$(LIBC): ar-target
-ar-target: $(OBJ) crti.o crtn.o
+ar-target: $(OBJ) $(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
$(AR) $(ARFLAGS) $(LIBC) $(OBJ)
$(MOBJ): $(MSRC)
@@ -67,10 +67,16 @@ crti.S crtn.S: initfini.s
crti.o: crti.S
$(CC) $(SAFECFLAGS) -c crti.S -o crti.o
+
+$(TOPDIR)lib/crti.o: crti.o
+ mkdir -p $(TOPDIR)lib/
cp crti.o $(TOPDIR)lib/
crtn.o: crtn.S
$(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o
+
+$(TOPDIR)lib/crtn.o: crtn.o
+ mkdir -p $(TOPDIR)lib/
cp crtn.o $(TOPDIR)lib/
clean: