X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fdepends.c;h=a506c3d1c7e526a41fdf7336b37f84f8dec59206;hb=6affde3b132bc51f5096fede31732d765c6f5684;hp=4f56d14e1eeb97edf71f5b07b2e7050ec3c940a1;hpb=49a1a4366fdcea418582a97cb0bf700373b89868;p=ccan diff --git a/tools/depends.c b/tools/depends.c index 4f56d14e..a506c3d1 100644 --- a/tools/depends.c +++ b/tools/depends.c @@ -62,8 +62,7 @@ char *compile_info(const void *ctx, const char *dir) compiled = temp_file(ctx, "", "info"); if (compile_and_link(ctx, info_c_file, find_ccan_dir(dir), "", - CCAN_COMPILER, CCAN_CFLAGS " -I.", "", - compiled, &output)) + compiler, cflags, "", compiled, &output)) return compiled; return NULL; } @@ -199,6 +198,8 @@ get_all_deps(const void *ctx, const char *dir, const char *style, unsigned int i; deps = get_one(ctx, dir, style, get_info); + if (!deps) + return NULL; for (i = 0; i < tal_count(deps)-1; i++) { char **newdeps; unsigned int j;