Commit 1186cf8822752dfadaf57a78f6b6bb5446f86006

Guillem Jover 2023-04-18T03:59:17

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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