[libav-devel] [PATCH] Handle -dumpversion in the same way as -version

Luca Barbato lu_zero at gentoo.org
Tue Mar 11 22:51:02 CET 2014


On 11/03/14 22:48, Martin Storsjo wrote:
> This is called when wrapping gas-preprocessor around a normal
> linux gcc.
> ---
>  gas-preprocessor.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
> index f112387..845e6bb 100755
> --- a/gas-preprocessor.pl
> +++ b/gas-preprocessor.pl
> @@ -95,7 +95,7 @@ if (grep /\.c$/, @gcc_cmd) {
>  } elsif (grep /\.[sS]$/, @gcc_cmd) {
>      # asm file, just do C preprocessor
>      @preprocess_c_cmd = (@gcc_cmd, "-E");
> -} elsif (grep /-(v|-version)/, @gcc_cmd) {
> +} elsif (grep /-(v|-version|dumpversion)/, @gcc_cmd) {
>      # pass -v/--version along, used during probing. Matching '-v' might have
>      # uninteded results but it doesn't matter much if gas-preprocessor or
>      # the compiler fails.
> 

Seems fine.


More information about the libav-devel mailing list