aboutsummaryrefslogtreecommitdiff
path: root/lib/csu/Makefile.inc
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2019-06-15 17:08:32 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2019-06-15 17:08:32 +0000
commitdcf1f8387612bdb3d0c2fc1b750956c2932e41aa (patch)
tree3bf7849db006c25fc2a28c51600b75561826701e /lib/csu/Makefile.inc
parent9e0a1e78e5492d22cd9cdcb24882bf4212e46f85 (diff)
downloadsrc-dcf1f8387612bdb3d0c2fc1b750956c2932e41aa.tar.gz
src-dcf1f8387612bdb3d0c2fc1b750956c2932e41aa.zip
Support reading in .depend files.
This is for an upcoming change that fixes .depend handling in here. It will cause some duplicate sources which need to be trimmed out. MFC after: 2 weeks Sponsored by: DellEMC
Notes
Notes: svn path=/head/; revision=349067
Diffstat (limited to 'lib/csu/Makefile.inc')
-rw-r--r--lib/csu/Makefile.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index e5f6bb7f5638..a58edf8d7e16 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -22,10 +22,11 @@ crtend.o: crtend.c
crtendS.o: crtend.c
crtbegin.o crtend.o crtbeginT.o:
- ${CC} ${CFLAGS} -I${.CURDIR} -c -o ${.TARGET} ${.ALLSRC}
+ ${CC} ${CFLAGS} -I${.CURDIR} -c -o ${.TARGET} ${.ALLSRC:N*.h:[1]}
crtbeginS.o crtendS.o:
- ${CC} ${CFLAGS} -I${.CURDIR} ${CFLAGS_CRTS} -c -o ${.TARGET} ${.ALLSRC}
+ ${CC} ${CFLAGS} -I${.CURDIR} ${CFLAGS_CRTS} -c -o ${.TARGET} \
+ ${.ALLSRC:N*.h:[1]}
.endif