- char *file = temp_file(ctx, "");
-
- *errmsg = run_command(ctx, "cc " CFLAGS " %s -o %s %s %s %s",
- extra_cflags, file, cfile, objs, libs);
- if (*errmsg) {
- talloc_free(file);
- return NULL;
- }
- return file;
+ if (compile_verbose)
+ printf("Compiling and linking %s\n", outfile);
+ return run_command(ctx, NULL, output,
+ "%s %s -I%s -o %s %s %s %s",
+ compiler, cflags,
+ ccandir, outfile, cfile, objs, libs);