def ensure_static_linker(self, compiler):
    if ((self.static_linker is None) and compiler.needs_static_linker()):
        self.static_linker = self.environment.detect_static_linker(compiler)
def ensure_static_linker(self, compiler):
    if ((self.static_linker is None) and compiler.needs_static_linker()):
        self.static_linker = self.environment.detect_static_linker(compiler)