def METHOD_NAME(self):
    if self.options.shared:
        self.options.rm_safe("fPIC")
    self.settings.rm_safe("compiler.libcxx")
    self.settings.rm_safe("compiler.cppstd")
    if self.options.spec != "gl":
        del self.options.gl_profile
        del self.options.gl_version
        del self.options.gles1_version
        del self.options.gles2_version
        del self.options.glsc2_version
    if self.options.spec != "egl":
        del self.options.egl_version
    if self.options.spec != "glx":
        del self.options.glx_version
    if self.options.spec != "wgl":
        del self.options.wgl_version