]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/depends_build.c
ccanlint: read config.h to get compilation flags at runtime.
[ccan] / tools / ccanlint / compulsory_tests / depends_build.c
index bb1f6ca358a821d8f14b9172f8bd737cdc107c5f..00f75b3733301f75083a74bda1b128f2c909ed2f 100644 (file)
@@ -37,8 +37,8 @@ static char *build_subdir_objs(struct manifest *m)
                char *output;
 
                i->compiled = maybe_temp_file(m, "", false, fullfile);
-               if (!compile_object(m, fullfile, ccan_dir, "", i->compiled,
-                                   &output)) {
+               if (!compile_object(m, fullfile, ccan_dir, compiler, cflags,
+                                   i->compiled, &output)) {
                        talloc_free(i->compiled);
                        i->compiled = NULL;
                        return talloc_asprintf(m,