Fix build race when building rtld

I found this on one of the CheriBSD Jenkins builders. Using
beforelinking instead of ${PROG} should fix the dependency for the
DEBUG_FILES case.

Reviewed by:	brooks
This commit is contained in:
Alex Richardson 2019-07-02 22:11:07 +00:00
parent 7fde3c6b28
commit 0cc62e2695

View File

@ -98,4 +98,4 @@ rtld_libc.a: ${LIBC_NOSSP_PIC} ${SRCTOP}/libexec/rtld-elf/rtld-libc/Makefile.inc
${AR} cr ${.OBJDIR}/${.TARGET} ${_rtld_libc_objs}
CLEANFILES+=rtld_libc.a
LDADD+=${.OBJDIR}/rtld_libc.a
${PROG}: rtld_libc.a
beforelinking: rtld_libc.a