resolv: Do not export __libanl_version_placeholder for ABIs starting at 2.35

Message ID 20211228182401.2780718-1-adhemerval.zanella@linaro.org
State Superseded
Headers
Series resolv: Do not export __libanl_version_placeholder for ABIs starting at 2.35 |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Adhemerval Zanella Netto Dec. 28, 2021, 6:24 p.m. UTC
  ---
 resolv/libanl-compat.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Florian Weimer Dec. 28, 2021, 8:11 p.m. UTC | #1
* Adhemerval Zanella:

> ---
>  resolv/libanl-compat.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/resolv/libanl-compat.c b/resolv/libanl-compat.c
> index 29df76f278..02c18bde90 100644
> --- a/resolv/libanl-compat.c
> +++ b/resolv/libanl-compat.c
> @@ -30,6 +30,8 @@ __libanl_version_placeholder_1 (void)
>  {
>  }
>  
> +# if SHLIB_COMPAT (libanl, GLIBC_2_2_3, GLIBC_2_34)
>  compat_symbol (libanl, __libanl_version_placeholder_1,
>                 __libanl_version_placeholder, GLIBC_2_2_3);
> +# endif
>  #endif

I think libanl.so should not be built at all (only libanl.a).

Thanks,
Florian
  

Patch

diff --git a/resolv/libanl-compat.c b/resolv/libanl-compat.c
index 29df76f278..02c18bde90 100644
--- a/resolv/libanl-compat.c
+++ b/resolv/libanl-compat.c
@@ -30,6 +30,8 @@  __libanl_version_placeholder_1 (void)
 {
 }
 
+# if SHLIB_COMPAT (libanl, GLIBC_2_2_3, GLIBC_2_34)
 compat_symbol (libanl, __libanl_version_placeholder_1,
                __libanl_version_placeholder, GLIBC_2_2_3);
+# endif
 #endif