]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/objects_build.c
ccanlint: read config.h to get compilation flags at runtime.
[ccan] / tools / ccanlint / compulsory_tests / objects_build.c
index 32546e591732ba080ed439d89b34d53e7dfd86da..91bc12ce9b3965a37afa8c327d864d36145e649d 100644 (file)
@@ -38,8 +38,8 @@ static void check_objs_build(struct manifest *m,
                char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, i->name);
 
                i->compiled = maybe_temp_file(m, "", keep, fullfile);
-               if (!compile_object(score, fullfile, ccan_dir, "", i->compiled,
-                                   &output)) {
+               if (!compile_object(score, fullfile, ccan_dir, compiler, cflags,
+                                   i->compiled, &output)) {
                        talloc_free(i->compiled);
                        score_file_error(score, i, 0,
                                         "Compiling object files:\n%s",