Browse Source

Be nicer to gcc -- add a link for crt1.o

Eric Andersen 23 years ago
parent
commit
5fa70fa170
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/sysdeps/linux/common/Makefile

+ 1 - 0
libc/sysdeps/linux/common/Makefile

@@ -51,6 +51,7 @@ $(LIBC): ar-target
 
 ar-target: $(OBJ) $(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
 	$(AR) $(ARFLAGS) $(LIBC) $(OBJ)
+	(cd $(TOPDIR)lib/; ln -s crt0.o crt1.o)
 
 $(MOBJ): $(MSRC)
 	$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o