resolv: Do not build libanl.so for ABIs starting at 2.35
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 Dec 2021 11:57:56 +0000 (08:57 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 Dec 2021 11:57:56 +0000 (08:57 -0300)
resolv/Makefile

index 59e599535c7aa6eb60808e410cd6a20bfbcb88ff..ed353386d9e10a410072558c6491962dc31b9534 100644 (file)
@@ -78,8 +78,12 @@ generate := mtrace-tst-leaks.out tst-leaks.mtrace tst-leaks2.mtrace
 
 extra-libs := libresolv libnss_dns
 ifeq ($(have-thread-library),yes)
-extra-libs += libanl
 routines += gai_sigqueue
+endif
+
+ifeq ($(have-GLIBC_2.34)$(have-thread-library),yesyes)
+# Empty compatibility library for old binaries.
+extra-libs += libanl
 
 tests += \
   tst-bug18665 \