]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Forestall a filesystem bug while building shlib.lds by using a temp file google/grte/v4-2.19/master
authorStan Shebs <stanshebs@google.com>
Wed, 14 Aug 2019 17:20:07 +0000 (10:20 -0700)
committerStan Shebs <stanshebs@google.com>
Wed, 14 Aug 2019 17:20:07 +0000 (10:20 -0700)
Makerules

index f15d51c1524dc5bc6c029ac9d93f80879d6ecc82..c77ef87651ea1668014088c6a17d605700cc9411 100644 (file)
--- 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) } &/' \