csu: Add proper .depend tracking for each object.

This doesn't appear to have ever worked. After a .depend is generated
there will be duplicate .c dependencies so only use the first one.

MFC after:	2 weeks
Sponsored by:	DellEMC
This commit is contained in:
Bryan Drewery 2019-06-15 17:08:39 +00:00
parent ee4eeb3213
commit 35c12dd688
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349069

View file

@ -14,6 +14,7 @@ CCDIR= ${SRCTOP}/gnu/usr.bin/cc
SRCS= crtstuff.c ${COMMONHDRS}
OBJS= crtbegin.o crtend.o crtbeginT.o
SOBJS= crtbeginS.o crtendS.o
DEPENDOBJS+= ${OBJS} ${SOBJS}
CSTD?= gnu89
CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
CFLAGS.gcc+= -finhibit-size-directive -fno-toplevel-reorder