]> git.ozlabs.org Git - ccan/blobdiff - tools/depends.c
opt: relicense to GPLv2+ (from GPLv3+)
[ccan] / tools / depends.c
index 4f56d14e1eeb97edf71f5b07b2e7050ec3c940a1..a506c3d1c7e526a41fdf7336b37f84f8dec59206 100644 (file)
@@ -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;