finalize_command="$CC"
compile_rpath=
+ compiler_flags=
finalize_rpath=
compile_shlibpath=
finalize_shlibpath=
prev=
continue
;;
+ B|b|V)
+ compiler_flags="$compiler_flags -$prev$qarg"
+ prev=
+ compile_command="$compile_command -$prev$qarg"
+ finalize_command="$finalize_command -$prev$qarg"
+ continue
+ ;;
*)
eval "$prev=\"\$arg\""
prev=
# Some other compiler flag.
-* | +*)
+ if test "X$extra_compiler_flags_value" != "X"; then
+ is_extra_compiler_flag=
+ eval "case \"\$arg\" in \
+ $extra_compiler_flags_value) \
+ is_extra_compiler_flag=yes ;; \
+ esac"
+ if test "$is_extra_compiler_flag"; then
+ prev=`echo "X$arg" | $Xsed -e 's/^-//'`
+ continue
+ fi
+ fi
# Unknown arguments in both finalize_command and compile_command need
# to be aesthetically quoted because they are evaled later.
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
arg="\"$arg\""
;;
esac
+ if test "X$extra_compiler_flags" != "X"; then
+ is_extra_compiler_flag=
+ eval "case \"\$arg\" in \
+ $extra_compiler_flags) \
+ is_extra_compiler_flag=yes ;; \
+ esac"
+ if test "$is_extra_compiler_flag"; then
+ compiler_flags="$compiler_flags $arg"
+ fi
+ fi
;;
*.o | *.obj | *.a | *.lib)