tools: Added "-I." to fix ccan_depends --compile
authorJoey Adams <joeyadams3.14159@gmail.com>
Tue, 8 Mar 2011 00:20:20 +0000 (10:50 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Mar 2011 00:20:20 +0000 (10:50 +1030)
(Patched forward by Rusty)

tools/depends.c

index ca1b6fc88b0f893814cb279f26b8ec4be3e77e9b..870f1e49dd7618073a6b97762c799f819698a891 100644 (file)
@@ -63,7 +63,7 @@ static char *compile_info(const void *ctx, const char *dir)
 
        compiled = maybe_temp_file(ctx, "", false, "info");
        if (compile_and_link(ctx, info_c_file, ccandir, "",
 
        compiled = maybe_temp_file(ctx, "", false, "info");
        if (compile_and_link(ctx, info_c_file, ccandir, "",
-                            CCAN_COMPILER, CCAN_CFLAGS, "",
+                            CCAN_COMPILER, CCAN_CFLAGS " -I.", "",
                             compiled, &output))
                return compiled;
        return NULL;
                             compiled, &output))
                return compiled;
        return NULL;