From: Stan Shebs Date: Wed, 14 Aug 2019 17:20:07 +0000 (-0700) Subject: Forestall a filesystem bug while building shlib.lds by using a temp file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fgoogle%2Fgrte%2Fv4-2.19%2Fmaster;p=thirdparty%2Fglibc.git Forestall a filesystem bug while building shlib.lds by using a temp file --- diff --git a/Makerules b/Makerules index f15d51c1524..c77ef87651e 100644 --- a/Makerules +++ b/Makerules @@ -458,8 +458,8 @@ $(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules $(LINK.o) -shared -Wl,-O1 \ -nostdlib -nostartfiles \ $(sysdep-LDFLAGS) $(rtld-LDFLAGS) $(LDFLAGS.so) \ - -Wl,--verbose 2>&1 | \ - sed > $@T \ + -Wl,--verbose 2>&1 >$@-tmp + sed $@-tmp > $@T \ -e '/^=========/,/^=========/!d;/^=========/d' \ $(if $(filter yes,$(have-hash-style)), \ -e 's/^.*\.gnu\.hash[ ]*:.*$$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' \