]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/module_links.c
ccanlint: read config.h to get compilation flags at runtime.
[ccan] / tools / ccanlint / compulsory_tests / module_links.c
index 83b1c780e067046cc715fc479f7e79c64e22cdda..9c1bce79d9e608c31e6b1fefefc38a56fb72f9bc 100644 (file)
@@ -72,8 +72,8 @@ static void check_use_build(struct manifest *m,
                err(1, "Failure writing to temporary file %s", tmpfile);
        close(fd);
 
-       if (compile_and_link(score, tmpfile, ccan_dir, obj_list(m), "",
-                            lib_list(m),
+       if (compile_and_link(score, tmpfile, ccan_dir, obj_list(m),
+                            compiler, cflags, lib_list(m),
                             maybe_temp_file(m, "", keep, tmpfile),
                             &cmdout)) {
                score->pass = true;