[FFmpeg-devel] [PATCH][RFC] configure: silence preprocessor noise from dependency generation
michaelni at gmx.at
Sat Oct 3 20:50:51 CEST 2015
On Fri, Sep 18, 2015 at 03:28:47PM -0400, Ganesh Ajjanagadde wrote:
> 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 at gmail.com>
> configure | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/configure b/configure
> index e5d7b12..6f9be48 100755
> --- a/configure
> +++ b/configure
> @@ -2975,7 +2975,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)'
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel