Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118167
b: refs/heads/master
c: e6e6733
h: refs/heads/master
i:
  118165: 6a5d15f
  118163: cd3102b
  118159: fdf1cc2
v: v3
  • Loading branch information
Ashutosh Naik authored and Sam Ravnborg committed Oct 29, 2008
1 parent 5c90867 commit 9207ce0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92f83cc56eeafdb8fcf07ceb89fd9a0212bd498c
refs/heads/master: e6e6733ed9451827165d853f25bf99ba55e12feb
12 changes: 11 additions & 1 deletion trunk/scripts/mod/sumversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,15 @@ static int parse_file(const char *fname, struct md4_ctx *md)
release_file(file, len);
return 1;
}
/* Check whether the file is a static library or not */
static int is_static_library(const char *objfile)
{
int len = strlen(objfile);
if (objfile[len - 2] == '.' && objfile[len - 1] == 'a')
return 1;
else
return 0;
}

/* We have dir/file.o. Open dir/.file.o.cmd, look for deps_ line to
* figure out source file. */
Expand Down Expand Up @@ -420,7 +429,8 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen)
while ((fname = strsep(&sources, " ")) != NULL) {
if (!*fname)
continue;
if (!parse_source_files(fname, &md))
if (!(is_static_library(fname)) &&
!parse_source_files(fname, &md))
goto release;
}

Expand Down

0 comments on commit 9207ce0

Please sign in to comment.