Fix the following:

It appears that make fails to read the global symbol table of the archive file,
making it think that the library needs to be rebuilt.

fix supplied in PR:

PR:		bin/14167
Submitted by:	Sebastian Lederer <lederer@bonn-online.com>
Reviewed by:	gallatin@FreeBSD.ORG
This commit is contained in:
Julian Elischer 1999-10-10 20:39:36 +00:00
parent 7b92e9236e
commit 110acfcd2b

View file

@ -807,7 +807,7 @@ ArchFindMember (archive, member, arhPtr, mode)
* the comparisons easier...
*/
cp = strrchr (member, '/');
if (cp != (char *) NULL) {
if ((cp != NULL) && (strcmp(member, RANLIBMAG) != 0)) {
member = cp + 1;
}
len = tlen = strlen (member);