[FFmpeg-cvslog] configure: Don't use symlinks for creating the out of tree makefile

Martin Storsjö git at videolan.org
Tue Nov 19 11:47:56 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Nov 14 13:22:11 2013 +0200| [fa48be9b954a96d2e408ede54a105ce49d6d7c47] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa48be9b954a96d2e408ede54a105ce49d6d7c47
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 55d054a..3690904 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"
 



More information about the ffmpeg-cvslog mailing list