about summary refs log tree commit diff
path: root/nss/getXXent_r.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-10-30 14:14:33 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-10-30 14:14:33 -0400
commit017678433caae358b1782a2438b10e1ed510a8ad (patch)
treefd9915a47e3a2b0c65dd2981ea249a9f4b8ec7a8 /nss/getXXent_r.c
parentd44a6f8b9995932b20a2ebbf4ca2fb1be673e49d (diff)
downloadglibc-017678433caae358b1782a2438b10e1ed510a8ad.tar.gz
glibc-017678433caae358b1782a2438b10e1ed510a8ad.tar.xz
glibc-017678433caae358b1782a2438b10e1ed510a8ad.zip
Suppress incorrect link warnings for NSS symbols
When glibc is built with --enable-static-nss, the warning that
using NSS symbols requires the nss shared objects to be present
is no longer true, as those symbols are built into libc.  Suppress
the warning for those symbols by providing a new macro
(nss_interface_function) for the NSS functions that is defined as
static_link_warning in the normal case, and empty for static NSS.
Diffstat (limited to 'nss/getXXent_r.c')
-rw-r--r--nss/getXXent_r.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/getXXent_r.c b/nss/getXXent_r.c
index f1036058ff..6c52d27cb2 100644
--- a/nss/getXXent_r.c
+++ b/nss/getXXent_r.c
@@ -207,6 +207,6 @@ do_default_symbol_version (NEW (REENTRANT_GETNAME),
 			   REENTRANT_GETNAME, GLIBC_2_1_2);
 #endif
 
-static_link_warning (SETFUNC_NAME)
-static_link_warning (ENDFUNC_NAME)
-static_link_warning (REENTRANT_GETNAME)
+nss_interface_function (SETFUNC_NAME)
+nss_interface_function (ENDFUNC_NAME)
+nss_interface_function (REENTRANT_GETNAME)