From 84f9ea0f73dbb3946294acf132f03ab437befc73 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 2 Jul 2011 16:03:04 -0700 Subject: Generate testrun.sh to use relative directory names. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 287f671c17..6f2dfa66fa 100644 --- a/Makefile +++ b/Makefile @@ -163,8 +163,10 @@ endif $(common-objpfx)testrun.sh: $(common-objpfx)config.make \ $(..)Makeconfig $(..)Makefile (echo '#!/bin/sh'; \ - echo "GCONV_PATH='$(common-objpfx)iconvdata' \\"; \ - echo 'exec $(run-program-prefix) $${1+"$$@"}'; \ + echo 'builddir=`dirname "$$0"`'; \ + echo 'GCONV_PATH="$${builddir}/iconvdata" \'; \ + echo 'exec $(subst $(common-objdir),"$${builddir}",\ + $(run-program-prefix)) $${1+"$$@"}'; \ ) > $@T chmod a+x $@T mv -f $@T $@ -- cgit 1.4.1