]> git.ozlabs.org Git - ccan/blobdiff - tools/compile.c
typesafe_cb: fix up (and test!) cast_if_any.
[ccan] / tools / compile.c
index f166512eb5fe609d13c911af4c72ac0ccd99cf01..089a9ab03c3dc25760b0fdd501f78a89df95ec9f 100644 (file)
@@ -7,7 +7,7 @@ char *link_objects(const void *ctx, const char *objs, char **errmsg)
 {
        char *file = temp_file(ctx, ".o");
 
-       *errmsg = run_command(ctx, "ld -r -o %s %s", file, objs);
+       *errmsg = run_command(ctx, NULL, "ld -r -o %s %s", file, objs);
        if (*errmsg) {
                talloc_free(file);
                return NULL;
@@ -21,7 +21,7 @@ char *compile_object(const void *ctx, const char *cfile, const char *ccandir,
 {
        char *file = temp_file(ctx, ".o");
 
-       *errmsg = run_command(ctx, "cc " CFLAGS " -I%s -c -o %s %s",
+       *errmsg = run_command(ctx, NULL, "cc " CFLAGS " -I%s -c -o %s %s",
                              ccandir, file, cfile);
        if (*errmsg) {
                talloc_free(file);
@@ -38,7 +38,7 @@ char *compile_and_link(const void *ctx, const char *cfile, const char *ccandir,
 {
        char *file = temp_file(ctx, "");
 
-       *errmsg = run_command(ctx, "cc " CFLAGS " -I%s %s -o %s %s %s %s",
+       *errmsg = run_command(ctx, NULL, "cc " CFLAGS " -I%s %s -o %s %s %s %s",
                              ccandir, extra_cflags, file, cfile, objs, libs);
        if (*errmsg) {
                talloc_free(file);