]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/module_links.c
typesafe_cb: fix example macro ordering in typesafe_cb_preargs documentation.
[ccan] / tools / ccanlint / compulsory_tests / module_links.c
index 83b1c780e067046cc715fc479f7e79c64e22cdda..0bf9821555d70b53c98f6c767b8b36726b58bc72 100644 (file)
@@ -28,9 +28,10 @@ static char *obj_list(const struct manifest *m)
 
        /* Other CCAN deps. */
        list_for_each(&m->deps, i, list) {
-               if (i->compiled)
+               if (i->compiled[COMPILE_NORMAL])
                        list = talloc_asprintf_append(list, "%s ",
-                                                     i->compiled);
+                                                     i->compiled
+                                                     [COMPILE_NORMAL]);
        }
        return list;
 }
@@ -38,7 +39,8 @@ static char *obj_list(const struct manifest *m)
 static char *lib_list(const struct manifest *m)
 {
        unsigned int i, num;
-       char **libs = get_libs(m, ".", &num, &m->info_file->compiled);
+       char **libs = get_libs(m, ".",
+                              &num, &m->info_file->compiled[COMPILE_NORMAL]);
        char *ret = talloc_strdup(m, "");
 
        for (i = 0; i < num; i++)
@@ -72,8 +74,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;