From f7b417723ed6875684b3591845e93ae1f49813d3 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 14 Jan 2013 18:18:27 +0100 Subject: [PATCH] Fix out-of-tree build with relative path to root Fix path of Makefile symlinks in a out-of-tree build where the root directory of the source is given as a relative path. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index e4321b71..c0c0bd96 100755 --- a/configure +++ b/configure @@ -506,8 +506,8 @@ if test "$source_path_used" = "yes" ; then # counterpart. case $source_path in /*) dest=$source_path/$f;; - *) dest=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'` - dest=$dest$f;; + *) dest=`echo "$dir/" | sed 's,^\./,,;s,[^/]*/,../,g'` + dest=$dest$source_path/$f;; esac ln -sf $dest $f done -- 2.11.4.GIT