mirror of
https://github.com/frida/tinycc
synced 2024-11-24 16:49:44 +03:00
configure: support absolete out-of-tree builds
configure: handle the case of absolute paths. Reported by grishka.
This commit is contained in:
parent
d7264e0218
commit
017bbbfee1
4
README
4
README
@ -35,8 +35,8 @@ Documentation:
|
|||||||
make test
|
make test
|
||||||
make install
|
make install
|
||||||
|
|
||||||
Alternatively, VPATH builds are supported: you may use different
|
Alternatively, out-of-tree builds are supported: you may use different
|
||||||
directories to old build objects, kept separate from your source tree:
|
directories to hold build objects, kept separate from your source tree:
|
||||||
|
|
||||||
mkdir _build
|
mkdir _build
|
||||||
cd _build
|
cd _build
|
||||||
|
11
configure
vendored
11
configure
vendored
@ -502,9 +502,14 @@ if test "$source_path_used" = "yes" ; then
|
|||||||
for f in $FILES ; do
|
for f in $FILES ; do
|
||||||
dir=`fn_dirname "$f"`
|
dir=`fn_dirname "$f"`
|
||||||
test -d "$dir" || mkdir -p "$dir"
|
test -d "$dir" || mkdir -p "$dir"
|
||||||
back=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'`
|
# Build a symlink $f that points to $dest, its $source_path
|
||||||
back=$back$f
|
# counterpart.
|
||||||
ln -sf $back $f
|
case $source_path in
|
||||||
|
/*) dest=$source_path/$f;;
|
||||||
|
*) dest=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'`
|
||||||
|
dest=$dest$f;;
|
||||||
|
esac
|
||||||
|
ln -sf $dest $f
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
cat >>config.mak <<EOF
|
cat >>config.mak <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user