- char *name = link_objects(m, m->basename, false, obj_list(m, ctype),
- errstr);
- if (name) {
- if (keep) {
- char *realname = talloc_asprintf(m, "%s.o", m->dir);
- assert(ctype == COMPILE_NORMAL);
- /* We leave this object file around, all built. */
- if (!move_file(name, realname))
- err(1, "Renaming %s to %s", name, realname);
- name = realname;
- }
- }
- return name;
+ return link_objects(m, m->basename, obj_list(m, ctype), errstr);