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

Martin Storsjo martin at martin.st
Tue Mar 11 22:48:48 CET 2014


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.
-- 
1.8.1.2



More information about the libav-devel mailing list