From 9277192e1549e6b63c199809d898c6cc12e4e8f6 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 14 Aug 2019 10:20:07 -0700 Subject: Forestall a filesystem bug while building shlib.lds by using a temp file --- Makerules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makerules b/Makerules index f15d51c152..c77ef87651 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) } &/' \ -- cgit 1.4.1