One more detail: the failure occurs if one is linking object files without compiling any files. If a source file is present on the command line, COLLECT_GCC_OPTIONS is defined. If no source file is present, COLLECT_GCC_OPTIONS never is defined in the environment. David