aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-18 15:28:47 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-03 21:59:24 +0200
commit8d1226e623b270969a04e455a14ed036dc8466bc (patch)
treea4ea692625fa6c505c0b724481ab0b3a78b7f928
parentfd9a528523d020764044dcc5a4873d030eeb2b63 (diff)
downloadffmpeg-8d1226e623b270969a04e455a14ed036dc8466bc.tar.gz
configure: silence preprocessor noise from dependency generation
Currently, errors are thrown for various macros while building that are completely bogus. They occur during the dependency (.d) generation phase, and have no bearing on the compiled output, since only the stdout is piped into the sed command to generate the .d files. They basically occur as the relevant -I paths are not (and cannot be passed) during the dependancy generation phase. As such, this patch silences them. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 3ee1ed26ad..305e756fd2 100755
--- a/configure
+++ b/configure
@@ -2980,7 +2980,7 @@ target_path='$(CURDIR)'
# since the object filename is not given with the -MM flag, the compiler
# is only able to print the basename, and we must add the path ourselves
-DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," > $(@:.o=.d)'
+DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>/dev/null | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," > $(@:.o=.d)'
DEPFLAGS='-MM'
# find source path