X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Fdepends_build.c;h=8bce5544832aa630c2ef93a838019a07d0da2c7d;hb=1444b09cd357c145b6e3fdb1bce3b6ace6862f56;hp=bb1f6ca358a821d8f14b9172f8bd737cdc107c5f;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8;p=ccan diff --git a/tools/ccanlint/compulsory_tests/depends_build.c b/tools/ccanlint/compulsory_tests/depends_build.c index bb1f6ca3..8bce5544 100644 --- a/tools/ccanlint/compulsory_tests/depends_build.c +++ b/tools/ccanlint/compulsory_tests/depends_build.c @@ -37,8 +37,8 @@ static char *build_subdir_objs(struct manifest *m) char *output; i->compiled = maybe_temp_file(m, "", false, fullfile); - if (!compile_object(m, fullfile, ccan_dir, "", i->compiled, - &output)) { + if (!compile_object(m, fullfile, ccan_dir, compiler, cflags, + i->compiled, &output)) { talloc_free(i->compiled); i->compiled = NULL; return talloc_asprintf(m, @@ -53,7 +53,6 @@ static char *build_subdir_objs(struct manifest *m) char *build_submodule(struct manifest *m) { char *errstr; - struct stat st; if (m->compiled) return NULL; @@ -61,10 +60,6 @@ char *build_submodule(struct manifest *m) if (!expect_obj_file(m)) return NULL; - m->compiled = talloc_asprintf(m, "%s.o", m->dir); - if (stat(m->compiled, &st) == 0) - return NULL; - if (verbose >= 2) printf(" Building dependency %s\n", m->dir);