- return compile_and_link(ctx, info_c_file, "", "", "", &errmsg);
+ ccandir = talloc_dirname(ctx, dir);
+ *strrchr(ccandir, '/') = '\0';
+
+ compiled = temp_file(ctx, "");
+ if (compile_and_link(ctx, info_c_file, ccandir, "", "", "",
+ compiled))
+ return NULL;
+ return compiled;