Commit adb61ea9 authored by mru's avatar mru

Fix dependency generation with ccache/gcc

When running behind ccache, the output from -MMD is corrupted unless
we also use the -MF and -MT flags.

Since ccache is difficult to detect and gcc 2.x doesn't support the
-MF and -MT flags, we always use the old dependency generation method
when gcc 2.x is detected.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19620 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5e21d022
......@@ -1510,8 +1510,10 @@ filter_asflags=echo
if $cc -v 2>&1 | grep -qi ^gcc; then
cc_type=gcc
CC_DEPFLAGS='-MMD'
AS_DEPFLAGS='-MMD'
if ! $cc -dumpversion | grep -q '^2\.'; then
CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
fi
elif $cc --version 2>/dev/null | grep -q Intel; then
cc_type=icc
CC_DEPFLAGS='-MMD'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment