From: Thomas Preud'homme Date: Mon, 14 Jan 2013 17:18:27 +0000 (+0100) Subject: Fix out-of-tree build with relative path to root X-Git-Tag: release_0_9_26~67 X-Git-Url: https://repo.or.cz/w/tinycc.git/commitdiff_plain/f7b417723ed6875684b3591845e93ae1f49813d3 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. --- 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