mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-30 04:10:08 +08:00
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.
This commit is contained in:
parent
a4e630c7d9
commit
f7b417723e
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user