internal/CheckCompilerFlag: rely on common configuration

Extract configuration step from the CheckCompilerFlag command
to enable to share it with future CheckLinkerFlag implementation
4 files changed