aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-14 18:18:27 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-14 18:18:27 +0100
commitf7b417723ed6875684b3591845e93ae1f49813d3 (patch)
treeafa32265ae57c9337f6ad6a34293a810f20faba5
parenta4e630c7d94f64af160ffaabf290735b7374c8ec (diff)
downloadtinycc-f7b417723ed6875684b3591845e93ae1f49813d3.tar.gz
tinycc-f7b417723ed6875684b3591845e93ae1f49813d3.tar.bz2
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.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index e4321b7..c0c0bd9 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