mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-26 12:04:59 +08:00
Allow to perform tests from the custom build dir:
mkdir build; cd build ../configure --prefix=./package make make test make install
This commit is contained in:
parent
d0e48c51c7
commit
bab4519617
23
configure
vendored
23
configure
vendored
@ -596,24 +596,17 @@ rm -f $TMPN* $CONFTEST
|
|||||||
|
|
||||||
fn_makelink()
|
fn_makelink()
|
||||||
{
|
{
|
||||||
tgt=$1/$2
|
SRCDIR=$(realpath $1)
|
||||||
case $2 in
|
DIR=$(dirname $2)
|
||||||
*/*) dn=${2%/*}
|
FILE=$(basename $2)
|
||||||
test -d $dn || mkdir -p $dn
|
if test ! -d "$DIR"; then
|
||||||
case $1 in
|
mkdir -p "$DIR"
|
||||||
/*) ;;
|
fi
|
||||||
*) while test $dn ; do
|
ln -s $SRCDIR/$DIR/$FILE $DIR/
|
||||||
tgt=../$tgt; dn=${dn#${dn%%/*}}; dn=${dn#/}
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
ln -sfn $tgt $2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if test "$source_path_used" = "yes" ; then
|
if test "$source_path_used" = "yes" ; then
|
||||||
FILES="Makefile lib/Makefile tests/Makefile tests/tests2/Makefile"
|
FILES="Makefile lib/Makefile tests/Makefile tests/tests2/* tests/pp/* tests/exsymtab/*"
|
||||||
for f in $FILES ; do
|
for f in $FILES ; do
|
||||||
fn_makelink $source_path $f
|
fn_makelink $source_path $f
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user