Forestall a filesystem bug while building shlib.lds by using a temp file

This commit is contained in:
Stan Shebs 2019-08-14 10:20:07 -07:00
parent 353f79819c
commit 9277192e15

View File

@ -458,8 +458,8 @@ $(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
$(LINK.o) -shared -Wl,-O1 \ $(LINK.o) -shared -Wl,-O1 \
-nostdlib -nostartfiles \ -nostdlib -nostartfiles \
$(sysdep-LDFLAGS) $(rtld-LDFLAGS) $(LDFLAGS.so) \ $(sysdep-LDFLAGS) $(rtld-LDFLAGS) $(LDFLAGS.so) \
-Wl,--verbose 2>&1 | \ -Wl,--verbose 2>&1 >$@-tmp
sed > $@T \ sed $@-tmp > $@T \
-e '/^=========/,/^=========/!d;/^=========/d' \ -e '/^=========/,/^=========/!d;/^=========/d' \
$(if $(filter yes,$(have-hash-style)), \ $(if $(filter yes,$(have-hash-style)), \
-e 's/^.*\.gnu\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \ -e 's/^.*\.gnu\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \