1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

configure: make --extra-cflags cumulative again

Originally committed as revision 19471 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-07-20 19:00:59 +00:00
parent 932e6a5a4c
commit 89f2932baf

14
configure vendored
View File

@ -1002,7 +1002,6 @@ 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
@ -1020,6 +1019,10 @@ CMDLINE_SET="
target_path target_path
" "
CMDLINE_APPEND="
extra_cflags
"
# code dependency declarations # code dependency declarations
# architecture extensions # architecture extensions
@ -1401,8 +1404,13 @@ for opt do
optname="${opt%%=*}" optname="${opt%%=*}"
optname="${optname#--}" optname="${optname#--}"
optname=$(echo "$optname" | sed 's/-/_/g') optname=$(echo "$optname" | sed 's/-/_/g')
is_in $optname $CMDLINE_SET || die_unknown $opt if is_in $optname $CMDLINE_SET; then
eval $optname='$optval' eval $optname='$optval'
elif is_in $optname $CMDLINE_APPEND; then
append $optname "$optval"
else
die_unknown $opt
fi
;; ;;
esac esac
done done