X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fcompile.c;h=089a9ab03c3dc25760b0fdd501f78a89df95ec9f;hp=f166512eb5fe609d13c911af4c72ac0ccd99cf01;hb=304652023042670b3173de0ad5dc0eb7c836618c;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e diff --git a/tools/compile.c b/tools/compile.c index f166512e..089a9ab0 100644 --- a/tools/compile.c +++ b/tools/compile.c @@ -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);