cc: don't add linker arguments if -v passed as sole option

Supports configure scripts (e.g., mplayer) that use "gcc -v" to identify compiler.

See #27786 for related discussion.