[uClibc-cvs] uClibc/utils ldconfig.c,1.1,1.2
Erik Andersen
andersen at uclibc.org
Wed Dec 3 20:12:48 UTC 2003
Update of /var/cvs/uClibc/utils
In directory winder:/tmp/cvs-serv26998/utils
Modified Files:
ldconfig.c
Log Message:
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.
Index: ldconfig.c
===================================================================
RCS file: /var/cvs/uClibc/utils/ldconfig.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ldconfig.c 6 Nov 2003 22:38:46 -0000 1.1
+++ ldconfig.c 3 Dec 2003 20:12:45 -0000 1.2
@@ -188,9 +188,8 @@
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, '.')))
More information about the uClibc-cvs
mailing list