cc: don't add linker arguments if only -v passed.

Supports configure scripts (e.g., mplayer) that use "gcc -v" to
identify compiler.

Closes #27793.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>