From 1186cf8822752dfadaf57a78f6b6bb5446f86006 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 18 Apr 2023 03:59:17 +0200 Subject: [PATCH] build: Annotate droppable functions for musl on next SOVERSION bump These are already provided by the musl libc, and can thus be dropped on the next SOVERSION bump. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index c759d4e..93e3b36 100644 --- a/configure.ac +++ b/configure.ac @@ -319,6 +319,12 @@ need_fpurge=yes need_funopen=yes AS_CASE([$host_os], [*-musl*], [ + # On musl >= 0.5.0, strlcpy() and strlcat() were already implemented, + # so these can then be dropped on the next SOVERSION bump. + #need_strl=no + # On musl >= 0.9.7, optreset got implemented, so bsd_getopt() can then + # be dropped on the next SOVERSION bump. + #need_bsd_getopt=no # On musl >= 1.1.19, fopencookie() got implemented, and because we were # checking for its presence to decide whether to build funopen(), it got # included in builds even when previously it had not been included, which