about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--elf/Makefile3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 924920fc1c..66deec2d77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-05-01  Roland McGrath  <roland@hack.frob.com>
 
+	* elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
+	output to the target.
+
 	* scripts/localplt.awk: New file.
 	* elf/Makefile ($(objpfx)check-localplt): Target removed.
 	(check-localplt-CFLAGS): Variable removed.
diff --git a/elf/Makefile b/elf/Makefile
index 0b5359f49f..57dcab0685 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -958,7 +958,8 @@ $(objpfx)check-localplt.out: $(..)scripts/check-localplt.awk \
 			     $(localplt-built-dso:=.jmprel) \
 			     $(check-data)
 	LC_ALL=C $(AWK) -f $(filter-out $< $(check-data),$^) | \
-	  LC_ALL=C $(AWK) -f $< $(check-data) -
+	  LC_ALL=C $(AWK) -f $< $(check-data) - \
+	  > $@
 endif
 
 $(objpfx)tst-dlopenrpathmod.so: $(libdl)