def METHOD_NAME(self, temp_env):
    s = spack.spec.Spec("cmake-client ldlibs=-lfoo").concretized()
    s.package.flag_handler = build_system_flags
    spack.build_environment.setup_package(s.package, False)
    assert "SPACK_LDLIBS" not in os.environ
    assert "LDLIBS" not in os.environ
    assert set(s.package.cmake_flag_args) == {
        "-DCMAKE_C_STANDARD_LIBRARIES=-lfoo",
        "-DCMAKE_CXX_STANDARD_LIBRARIES=-lfoo",
        "-DCMAKE_Fortran_STANDARD_LIBRARIES=-lfoo",
    }