Commit 6acab66f authored by Rusty Russell's avatar Rusty Russell

ccanlint: module_links test must link with module.

Gcc doesn't include unused inline functions, even without -O, but Solaris CC
does, so fails to link block_pool where one inline function refers to a
non-inline function.
parent d194919a
......@@ -23,13 +23,18 @@ static const char *can_build(struct manifest *m)
static char *obj_list(const struct manifest *m)
{
char *list = talloc_strdup(m, "");
char *list;
struct manifest *i;
if (m->compiled[COMPILE_NORMAL])
list = talloc_strdup(m, m->compiled[COMPILE_NORMAL]);
else
list = talloc_strdup(m, "");
/* Other CCAN deps. */
list_for_each(&m->deps, i, list) {
if (i->compiled[COMPILE_NORMAL])
list = talloc_asprintf_append(list, "%s ",
list = talloc_asprintf_append(list, " %s",
i->compiled
[COMPILE_NORMAL]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment