diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-07-02 16:03:04 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-07-02 16:03:04 -0700 |
commit | 84f9ea0f73dbb3946294acf132f03ab437befc73 (patch) | |
tree | 60e931138270a2ced2aeabc5e8b38f7d0258f347 /Makefile | |
parent | ea5ee9f73d7b9d143d04e6b91020fe9dc7b18a40 (diff) | |
download | glibc-84f9ea0f73dbb3946294acf132f03ab437befc73.tar.gz |
Generate testrun.sh to use relative directory names.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 $@ |