Commit dbd104b3 authored by mru's avatar mru

Add flags from --extra-cflags after compiler detection

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19411 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5b5ddebd
...@@ -996,6 +996,7 @@ CMDLINE_SET=" ...@@ -996,6 +996,7 @@ CMDLINE_SET="
cpu cpu
cross_prefix cross_prefix
dep_cc dep_cc
extra_cflags
extra_version extra_version
host_cc host_cc
host_cflags host_cflags
...@@ -1343,8 +1344,6 @@ show_list() { ...@@ -1343,8 +1344,6 @@ show_list() {
for opt do for opt do
optval="${opt#*=}" optval="${opt#*=}"
case "$opt" in case "$opt" in
--extra-cflags=*) add_cflags $optval
;;
--extra-ldflags=*) add_ldflags $optval --extra-ldflags=*) add_ldflags $optval
;; ;;
--extra-libs=*) add_extralibs $optval --extra-libs=*) add_extralibs $optval
...@@ -1494,6 +1493,8 @@ test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" ...@@ -1494,6 +1493,8 @@ 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
add_cflags $extra_cflags
if test -n "$sysroot"; then if test -n "$sysroot"; then
case "$cc_type" in case "$cc_type" in
gcc) gcc)
......
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