aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-15 19:24:08 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-15 19:24:08 +0000
commit14f3ce3615fea787787299de336f27070794b6d0 (patch)
tree7e774048168ed996cc65bccd81d44f9457ec5954 /configure
parenta426bbfc280b62c0e6997090651602f93e789d0d (diff)
downloadffmpeg-14f3ce3615fea787787299de336f27070794b6d0.tar.gz
fix DEPEND_CMD for out of tree builds
Originally committed as revision 12454 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 7a89ab2516..30c774a025 100755
--- a/configure
+++ b/configure
@@ -935,7 +935,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
# gcc stupidly only outputs the basename of targets with -MM
-DEPEND_CMD='$(CC) -MM $(CFLAGS) $(filter-out %.h,$^) | sed "s,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,"'
+DEPEND_CMD='$(CC) -MM $(CFLAGS) $(filter-out %.h,$^) | sed "s,[0-9a-z._-]*: \($(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\2&,"'
VHOOKDEPEND_CMD='$(CC) -MM $(VHOOKCFLAGS) $(filter-out %.h,$^) | sed "s,^\([a-z]\),vhook/\1,"'
# find source path