summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-11-14 13:22:11 +0200
committerMartin Storsjö <martin@martin.st>2013-11-19 10:12:58 +0200
commitfa48be9b954a96d2e408ede54a105ce49d6d7c47 (patch)
tree043cfcb6e9fc049ccb4e35744c890d9c1cbf1146
parent16e7b189c548b4075ff4b5dd62af10e2acae260b (diff)
configure: Don't use symlinks for creating the out of tree makefile
On some platforms (such as msys), symlinks are (poorly) emulated by simply creating a copy of the file. This means that when building out of tree, the build tree gets a copy of the original makefile, which can lead to unintuitive build errors when the original makefile gets updated later. Instead simply create a stub makefile which includes the real one. Signed-off-by: Martin Storsjö <martin@martin.st>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 55d054a8a4..36909048f4 100755
--- a/configure
+++ b/configure
@@ -4174,7 +4174,7 @@ echo "License: $license"
echo "Creating config.mak and config.h..."
-test -e Makefile || $ln_s "$source_path/Makefile" .
+test -e Makefile || echo "include $source_path/Makefile" > Makefile
config_files="$TMPH config.mak"