[PATCH] Implement a workaround for GNU mak jobserver
H.J. Lu
hjl.tools@gmail.com
Tue Oct 27 15:50:32 GMT 2020
On Tue, Oct 27, 2020 at 8:30 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Okt 27 2020, H.J. Lu wrote:
>
> > Since it must keep the same timestamps on config.status and Makefile,
>
> Why is that needed?
>
ld/Makefile has
ldemul-list.h: Makefile
(echo "/* This file is automatically generated. DO NOT EDIT! */";\
for f in `echo " " ${EMULATION_OFILES} "" \
| sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
done;\
echo "";\
echo "#define EMULATION_LIST \\";\
for f in `echo " " ${EMULATION_OFILES} "" \
| sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
echo " &ld_$${f}_emulation, \\"; \
done;\
echo " 0") >ldemul-tmp.h
mv ldemul-tmp.h ldemul-list.h
"make check" training run in triggers both linker check and
ld-new rebuild in parallel because Makefile was edited by
config.status. This is a simple change to avoid it.
--
H.J.
More information about the Binutils
mailing list