aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-01 21:06:53 +0200
committergrischka <grischka>2016-10-01 21:06:53 +0200
commitafdbc5b8152debb2ef053720b95f37a4cf4106eb (patch)
tree3e9b1d365027f9f3dc674729664d9d175d21fab2 /configure
parent0a624782dfc8fee6f0600066b135d3b20e4274f4 (diff)
downloadtinycc-afdbc5b8152debb2ef053720b95f37a4cf4106eb.tar.gz
tinycc-afdbc5b8152debb2ef053720b95f37a4cf4106eb.tar.bz2
build: restore out-of-tree support
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure b/configure
index 89e32fe..b6a0b21 100755
--- a/configure
+++ b/configure
@@ -519,11 +519,11 @@ echo "@set VERSION $version" > config.texi
if test "$source_path_used" = "yes" ; then
case $source_path in
- /*) echo "SRCTOP=$source_path";;
- *) echo "SRCTOP=\$(TOP)/$source_path";;
+ /*) echo "TOPSRC=$source_path";;
+ *) echo "TOPSRC=\$(TOP)/$source_path";;
esac >>config.mak
else
- echo 'SRCTOP=$(TOP)' >>config.mak
+ echo 'TOPSRC=$(TOP)' >>config.mak
fi
diff $TMPH config.h >/dev/null 2>&1
@@ -553,7 +553,11 @@ fn_makelink()
esac
;;
esac
- ln -sfn $tgt $2
+ if test "$mingw32" = "yes" ; then
+ cmd //c mklink `echo "$2 $tgt" | sed 's,/,\\\\,g'`
+ else
+ ln -sfn $tgt $2
+ fi
}
if test "$source_path_used" = "yes" ; then