Forward-ported from cl/51271693 (from cl/38027-p2).
(ppluzhnikov, google-local)
+dlfcn/dlmopen.c
+dlfcn/dlopen.c
+sysdeps/gnu/errlist-compat.awk
+ Disable static linking warning for dlopen and dlmopen, and disable linking
+ warning for sys_errlist and sys_nerr.
+ Forward-ported from part of cl/51276043 (from cl/38025-p2).
+ (ppluzhnikov, google-local)
+
{
return __dlmopen (nsid, file, mode, RETURN_ADDRESS (0));
}
+#if 0 // Google-local
static_link_warning (dlmopen)
+#endif
#else
{
return __dlopen (file, mode, RETURN_ADDRESS (0));
}
+#if 0 // Google-local
static_link_warning (dlopen)
+#endif
#else
lastv, lastv, lastv, lastv;
print "\n\
+/* Google-local:\n\
+ Disable deprecation warnings; they're emitted even if referenced\n\
+ only by debug info. */\n\
+#if 0\n\
link_warning (sys_errlist, \"\
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead\")\n\
link_warning (sys_nerr, \"\
-`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead\")";
+`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead\")\n\
+#endif";
}