summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Pratt2025-08-08 04:58:56 +0000
committerRobert Marko2025-08-11 20:28:41 +0000
commita808086826a75976947fc38ad0c58b20e398f7b9 (patch)
treeeade3dc0066c1a5e1d4b10aee7fe00bc313a4c6d
parent57bd20b3901e3bb918f0c07e657f260ec8e2e354 (diff)
downloadopenwrt-a808086826a75976947fc38ad0c58b20e398f7b9.tar.gz
tools: gnulib: always use std-gnu23 module
The new "std-gnu23" module has the stated goal of: "...to update the c99 module to depend on std-gnu23 instead of on std-gnu11, and to make std-gnu11 obsolete." in upstream commit 8990abb50 ("std-gnu23: new module"). However, for now, it's design is optional, so that definitions of the latest standard module overrides the former. At some point, upstream gnulib will replace the dependency instead of add it alongside the older one. Because all macros are copied to the aclocal directory, for complex projects, not including the module may cause the macros to apply only to some subdirectories rather than all of them and top-level together. For projects that import source from local gnulib, always include the std-gnu23.m4 macros for consistency. Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/19748 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--tools/gnulib/patches/195-c99-use-std-gnu23.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gnulib/patches/195-c99-use-std-gnu23.patch b/tools/gnulib/patches/195-c99-use-std-gnu23.patch
new file mode 100644
index 0000000000..11c2f3297c
--- /dev/null
+++ b/tools/gnulib/patches/195-c99-use-std-gnu23.patch
@@ -0,0 +1,10 @@
+--- a/modules/c99
++++ b/modules/c99
+@@ -5,6 +5,7 @@ Files:
+
+ Depends-on:
+ std-gnu11
++std-gnu23
+
+ configure.ac:
+