]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
support: introduce support_sysconfdir_prefix
authorRomain Geissler <romain.geissler@gmail.com>
Sun, 26 Mar 2023 20:00:14 +0000 (20:00 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Mar 2023 19:58:08 +0000 (16:58 -0300)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
support/Makefile
support/support.h
support/support_paths.c

index 05b31159ea53ca0dbd4b04051e252bc25dbcf6ac..71d51485132fb0a644300b32c103db3bf25f8a3a 100644 (file)
@@ -231,7 +231,8 @@ CFLAGS-support_paths.c = \
                -DSBINDIR_PATH=\"$(sbindir)\" \
                -DSLIBDIR_PATH=\"$(slibdir)\" \
                -DROOTSBINDIR_PATH=\"$(rootsbindir)\" \
-               -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\"
+               -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\" \
+               -DSYSCONFDIR_PATH=\"$(sysconfdir)\"
 
 # In support_timespec_check_in_range we may be passed a very tight
 # range for which we should produce a correct result for expected
index 525ff1ebcecb69b26b29fd70dbffd488a7ed38de..b7f76bf080986b8f0a3b357b0c3bca0b97847ac0 100644 (file)
@@ -144,6 +144,8 @@ extern const char support_slibdir_prefix[];
 extern const char support_install_rootsbindir[];
 /* Corresponds to the install's compiled locale directory.  */
 extern const char support_complocaledir_prefix[];
+/* Corresponds to the install's etc/ directory.  */
+extern const char support_sysconfdir_prefix[];
 
 /* Copies the file at the path FROM to TO.  If TO does not exist, it
    is created.  If TO is a regular file, it is truncated before
index f9d75998cf2b9ad1f849cb74a13d7e0af6cff3b1..0710bcd4122bf14905a9f749026d33066cd4cb94 100644 (file)
@@ -92,3 +92,10 @@ const char support_complocaledir_prefix[] = COMPLOCALEDIR_PATH;
 #else
 # error please -DCOMPLOCALEDIR_PATH=something in the Makefile
 #endif
+
+#ifdef SYSCONFDIR_PATH
+/* Corresponds to the install's etc/ directory.  */
+const char support_sysconfdir_prefix[] = SYSCONFDIR_PATH;
+#else
+# error please -DSYSCONFDIR_PATH=something in the Makefile
+#endif