From 07c58f8f3501329340bf3c69a347f7c8fdcbe528 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 21 May 2012 21:34:05 +0200 Subject: Fix sunrpc static library * include/shlib-compat.h (libc_sunrpc_symbol): New macro. * sunrpc/svc_simple.c: Use it for registerrpc. * sunrpc/xcrypt.c: Use it for passwd2des. --- include/shlib-compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/shlib-compat.h b/include/shlib-compat.h index 19f1041b05..912f5423e5 100644 --- a/include/shlib-compat.h +++ b/include/shlib-compat.h @@ -91,4 +91,14 @@ #endif +# ifdef LINK_OBSOLETE_RPC +/* Export the symbol for both static and dynamic linking. */ +# define libc_sunrpc_symbol(name, aliasname, version) \ + strong_alias (name, aliasname) +# else +/* Export the symbol only for shared-library compatibility. */ +# define libc_sunrpc_symbol(name, aliasname, version) \ + compat_symbol (libc, name, aliasname, version); +# endif + #endif /* shlib-compat.h */ -- cgit v1.2.3