Commit 90479c5a authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix --target=examples-compile

parent 70539048
......@@ -81,7 +81,7 @@ static char *obj_list(const struct manifest *m, const char *modobjs)
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, m->dir, &num, &m->info_file->compiled);
char *ret = talloc_strdup(m, "");
for (i = 0; i < num; i++)
......
......@@ -53,7 +53,7 @@ static char *obj_list(const struct manifest *m, bool link_with_module)
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, m->dir, &num, &m->info_file->compiled);
char *ret = talloc_strdup(m, "");
for (i = 0; i < num; i++)
......
......@@ -103,7 +103,7 @@ static char *obj_list(const struct manifest *m, struct ccan_file *f)
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, m->dir, &num, &m->info_file->compiled);
char *ret = talloc_strdup(m, "");
for (i = 0; i < num; i++)
......@@ -542,4 +542,4 @@ struct ccanlint examples_compile = {
.can_run = can_run,
};
REGISTER_TEST(examples_compile, &has_examples, NULL);
REGISTER_TEST(examples_compile, &has_examples, &build_objs, NULL);
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