diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-09-25 23:06:52 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-09-25 23:06:52 +0200 |
commit | 84340573b753921ce197e470bd3f6ba6b7fe1636 (patch) | |
tree | 16271287eaabcfceb77397bca730fad8a25ab4e5 /tools | |
parent | 5c764905aac169d00fde96ceedfacdf168de10b2 (diff) |
check complete directory name
otherwise libcapi20 is skipped like libc.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/adk/depmaker.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/adk/depmaker.c b/tools/adk/depmaker.c index c0e434590..9336aaa9f 100644 --- a/tools/adk/depmaker.c +++ b/tools/adk/depmaker.c @@ -150,12 +150,12 @@ int main() { } /* exclude manual maintained packages from package/Makefile */ - if (!(strncmp(pkgdirp->d_name, "eglibc", 6) == 0) && - !(strncmp(pkgdirp->d_name, "libc", 4) == 0) && - !(strncmp(pkgdirp->d_name, "libpthread", 10) == 0) && - !(strncmp(pkgdirp->d_name, "uclibc++", 8) == 0) && - !(strncmp(pkgdirp->d_name, "uclibc", 6) == 0) && - !(strncmp(pkgdirp->d_name, "glibc", 5) == 0)) { + if (!(strncmp(pkgdirp->d_name, "eglibc", strlen(pkgdirp->d_name)) == 0) && + !(strncmp(pkgdirp->d_name, "libc", strlen(pkgdirp->d_name)) == 0) && + !(strncmp(pkgdirp->d_name, "libpthread", strlen(pkgdirp->d_name)) == 0) && + !(strncmp(pkgdirp->d_name, "uclibc++", strlen(pkgdirp->d_name)) == 0) && + !(strncmp(pkgdirp->d_name, "uclibc", strlen(pkgdirp->d_name)) == 0) && + !(strncmp(pkgdirp->d_name, "glibc", strlen(pkgdirp->d_name)) == 0)) { /* print result to stdout */ printf("package-$(ADK_COMPILE_%s) += %s\n", pkgvar, pkgdirp->d_name); } |