From 0f31fe77917284db6537bf9fdf45f3f656025ff9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 11 Sep 2011 20:33:24 +0200 Subject: Prepend $(..) to $(ldd-rewrite-script) if non-absolute --- elf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elf') diff --git a/elf/Makefile b/elf/Makefile index bb46601..a2d976e 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -482,7 +482,8 @@ LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< > $@.new endef else define gen-ldd -LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< | LC_ALL=C sed -f $(ldd-rewrite-script) > $@.new +LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< \ +| LC_ALL=C sed -f $(patsubst $(..)/,/,$(..)$(ldd-rewrite-script)) > $@.new endef endif -- cgit v1.1