]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/module_links.c
tools: enhance get_libs to get libraries for tests, too.
[ccan] / tools / ccanlint / tests / module_links.c
index 79aa7d1a872a6421c6fb8706142fe2df0c2b9e76..d665ba7d6672f7a86849f6683686e6bb83fa42a3 100644 (file)
@@ -47,7 +47,7 @@ static char *lib_list(const struct manifest *m)
        char **libs;
        char *ret = talloc_strdup(m, "");
 
-       libs = get_libs(m, m->dir, true, get_or_compile_info);
+       libs = get_libs(m, m->dir, "depends", get_or_compile_info);
        for (i = 0; libs[i]; i++)
                ret = talloc_asprintf_append(ret, "-l%s ", libs[i]);
        return ret;