diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-12-03 20:12:45 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-12-03 20:12:45 +0000 |
commit | 08abc40b22ef5a21e57e9b153cc0b8ea24037c8e (patch) | |
tree | e54bcdb61bdef3676c0ee535b688d2297440d4b1 | |
parent | f43ce012000be6fb1cfe3d5c4ccf51bc96c19849 (diff) |
Rob McMullen writes:
There is code in ldconfig that checks to see if a shared library is named
either ``lib*'' or ``ld-*'' before ldconfig -l will work on it. gawk uses this
feature of ldconfig to make /lib/rcscripts/filefuncs.so, so the build fails.
-rw-r--r-- | utils/ldconfig.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c index 806604edd..cf7c001dd 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -188,9 +188,8 @@ char *is_shlib(const char *dir, const char *name, int *type, struct stat statbuf; char buff[4096]; - /* see if name is of the form libZ.so* */ - if ((strncmp(name, "lib", 3) == 0 || strncmp(name, "ld-", 3) == 0) && \ - name[strlen(name)-1] != '~' && (cp = strstr(name, ".so"))) + /* see if name is of the form *.so* */ + if (name[strlen(name)-1] != '~' && (cp = strstr(name, ".so"))) { /* find the start of the Vminor part, if any */ if (cp[3] == '.' && (cp2 = strchr(cp + 4, '.'))) |