diff options
author | Andreas Jaeger <jaegerandi@gmail.com> | 2012-05-21 21:34:05 +0200 |
---|---|---|
committer | Andreas Jaeger <jaegerandi@gmail.com> | 2012-05-21 21:34:54 +0200 |
commit | 07c58f8f3501329340bf3c69a347f7c8fdcbe528 (patch) | |
tree | ee492594d7294a0d806d1a63a5f323cf9d6ae078 /include | |
parent | 662742187c77452c38cddababa92285cb62dbc28 (diff) | |
download | glibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.zip glibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.tar.gz glibc-07c58f8f3501329340bf3c69a347f7c8fdcbe528.tar.bz2 |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/shlib-compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/shlib-compat.h b/include/shlib-compat.h index 19f1041..912f542 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 */ |