Commit 1da168fa authored by mru's avatar mru

Set default flag filters before compiler detection

This allows use of the add_*flags functions in the compiler detection
section.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19428 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e2c49647
...@@ -1477,6 +1477,10 @@ EOF ...@@ -1477,6 +1477,10 @@ EOF
die "Sanity test failed." die "Sanity test failed."
fi fi
filter_cflags=echo
filter_cppflags=echo
filter_asflags=echo
if $cc --version 2>/dev/null | grep -qi gcc; then if $cc --version 2>/dev/null | grep -qi gcc; then
cc_type=gcc cc_type=gcc
elif $cc --version 2>/dev/null | grep -q Intel; then elif $cc --version 2>/dev/null | grep -q Intel; then
...@@ -1508,10 +1512,6 @@ test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" ...@@ -1508,10 +1512,6 @@ test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
: ${ld_default:=$cc} : ${ld_default:=$cc}
set_default as dep_cc ld set_default as dep_cc ld
: ${filter_cflags:=echo}
: ${filter_cppflags:=echo}
: ${filter_asflags:=echo}
add_cflags $extra_cflags add_cflags $extra_cflags
add_asflags $extra_cflags add_asflags $extra_cflags
......
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