]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/build_objs.c
ccanlint: fix directory issues properly.
[ccan] / tools / ccanlint / compulsory_tests / build_objs.c
index 2f189e859f25a8b523505609cafd31c429e3a443..4c0b6bba8dd97487c3070d22c00944a540f6f65c 100644 (file)
@@ -28,11 +28,12 @@ static void *check_objs_build(struct manifest *m)
 
        list_for_each(&m->c_files, i, list) {
                char *err;
+               char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, i->name);
 
                /* One point for each obj file. */
                build_objs.total_score++;
 
-               i->compiled = compile_object(m, i->name, &err);
+               i->compiled = compile_object(m, fullfile, ccan_dir, &err);
                if (!i->compiled) {
                        if (report)
                                report = talloc_append_string(report, err);