From: Matthias Ringwald Date: Fri, 21 Mar 2008 13:47:22 +0100 Subject: Don't create self-referencing symlinks for makefiles FFMPEG's configure script is called from contrib/Makefile.am with an absolute path which makes it believe that it is configured for src_dir != build_dir and then creates symlinks in the build_dir which point to the corresponding Makefile in the src_dir. As they are identical, the Makefile is replaced by a symlink to itself. --- a/contrib/Makefile.am 2008-03-21 13:39:53.000000000 +0100 +++ a/contrib/Makefile-new.am 2008-03-21 13:29:46.000000000 +0100 @@ -110,11 +110,8 @@ export FFMPEG_CONFIGURE_OPTIONS="$(all_configure_options)"; \ $(ffmpeg_builder) -configure "$(srcdir)/ffmpeg" $(UNIVERSAL_ARCHES) else - mkdir -p ffmpeg - cd ffmpeg; \ - $(srcdir)/ffmpeg/configure $(all_configure_options) \ - --extra-cflags="$(VISIBILITY_FLAG) $(FFMPEG_EXTRA_CFLAGS)"; \ - cd .. + cd ffmpeg; ./configure $(all_configure_options) \ + --extra-cflags="$(VISIBILITY_FLAG) $(FFMPEG_EXTRA_CFLAGS)"; if HOST_OS_DARWIN if what /usr/bin/ld | grep -q ld64-77; then \ cat ffmpeg/config.mak | sed -e '/OPTFLAGS=/s/-mdynamic-no-pic//g' > ffmpeg/config.tmp; \