Browse Source

Qunying Pan writes: Make strncmp weak hidden to fix link failures in building gdb and binutils statically

Mike Frysinger 18 years ago
parent
commit
497654c710

+ 1 - 1
libc/string/arm/strncmp.S

@@ -65,4 +65,4 @@ strncmp:
 
 .size strncmp,.-strncmp
 
-libc_hidden_def(strncmp)
+libc_hidden_weak(strncmp)

+ 1 - 1
libc/string/generic/strncmp.c

@@ -65,4 +65,4 @@ int strncmp (const char *s1, const char *s2, size_t n)
 
   return c1 - c2;
 }
-libc_hidden_def(strncmp)
+libc_hidden_weak(strncmp)

+ 1 - 1
libc/string/i386/strncmp.c

@@ -55,4 +55,4 @@ int strncmp(const char *cs, const char *ct, size_t count)
 	    :"1" (cs),"2" (ct),"3" (count));
     return __res;
 }
-libc_hidden_def(strncmp)
+libc_hidden_weak(strncmp)

+ 1 - 1
libc/string/ia64/strncmp.S

@@ -59,4 +59,4 @@ ENTRY(strncmp)
 .restore_and_exit:
 	br.ret.sptk.many b0
 END(strncmp)	
-libc_hidden_def (strncmp)
+libc_hidden_weak (strncmp)

+ 1 - 1
libc/string/strncmp.c

@@ -38,5 +38,5 @@ int Wstrncmp(register const Wchar *s1, register const Wchar *s2, size_t n)
 #endif
 }
 #ifndef WANT_WIDE
-libc_hidden_def(strncmp)
+libc_hidden_weak(strncmp)
 #endif