summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--elf/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6fd8c36397..95b1fac64c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-09-13  Andreas Schwab  <schwab@redhat.com>
 
+	* elf/Makefile (gen-ldd): Fix pattern.
+
 	* elf/rtld.c (dl_main): Only use USE___THREAD when defined.
 	(init_tls): Likewise.
 
diff --git a/elf/Makefile b/elf/Makefile
index a2d976ebc5..f20f52dee1 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -483,7 +483,7 @@ endef
 else
 define gen-ldd
 LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< \
-| LC_ALL=C sed -f $(patsubst $(..)/,/,$(..)$(ldd-rewrite-script)) > $@.new
+| LC_ALL=C sed -f $(patsubst $(..)/%,/%,$(..)$(ldd-rewrite-script)) > $@.new
 endef
 endif