]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_compile.c
tools: enhance get_libs to get libraries for tests, too.
[ccan] / tools / ccanlint / tests / tests_compile.c
index 733aebdb88d1b7d0a977f1285523ecb878fb32ea..3114f2f1bc6de31ea7b7afdf4a382a36cfdde72e 100644 (file)
@@ -58,7 +58,7 @@ char *lib_list(const struct manifest *m, enum compile_type ctype)
        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;