def METHOD_NAME(self):
    if self.options.shared:
        try:
            del self.options.fPIC
        except Exception:
            pass
    try:
        del self.settings.compiler.libcxx
    except Exception:
        pass
    try:
        del self.settings.compiler.cppstd
    except Exception:
        pass