def METHOD_NAME(self):
    if self.options.header_only:
        self.options.rm_safe("fPIC")
        self.options.rm_safe("shared")
        self.options.rm_safe("with_os_api")
    elif self.options.shared:
        self.options.rm_safe("fPIC")