From: Måns Rullgård Date: Sun, 12 Jul 2009 22:44:05 +0000 (+0000) Subject: Allow filtering of flags passed to compiler and assembler X-Git-Tag: v0.6~3823 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=caf458dda4ae593b58046cc73d56a70eeab26c15 Allow filtering of flags passed to compiler and assembler This can be used to map gcc-type flags to equivalents with other compilers. Originally committed as revision 19421 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/configure b/configure index 77e148cad3..dbc9ceb819 100755 --- a/configure +++ b/configure @@ -513,15 +513,15 @@ append(){ } add_cppflags(){ - append CPPFLAGS "$@" + append CPPFLAGS $($filter_cppflags "$@") } add_cflags(){ - append CFLAGS "$@" + append CFLAGS $($filter_cflags "$@") } add_asflags(){ - append ASFLAGS "$@" + append ASFLAGS $($filter_asflags "$@") } add_ldflags(){ @@ -589,14 +589,16 @@ check_ld(){ check_cppflags(){ log check_cppflags "$@" - check_cc "$@" <