'Remove the specified compiler option.
Return true if the option was found.  Return false otherwise.'

def __remove_compiler_option(self, option):

    found = 0
    for attrname in ('compiler', 'compiler_so'):
        compiler = getattr(self.compiler, attrname, None)
        if (compiler is not None):
            while (option in compiler):
                compiler.remove(option)
                found += 1
    return found
