mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
support: introduce support_sysconfdir_prefix
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
743963cad7
commit
57ce87a940
3 changed files with 11 additions and 1 deletions
|
@ -231,7 +231,8 @@ CFLAGS-support_paths.c = \
|
||||||
-DSBINDIR_PATH=\"$(sbindir)\" \
|
-DSBINDIR_PATH=\"$(sbindir)\" \
|
||||||
-DSLIBDIR_PATH=\"$(slibdir)\" \
|
-DSLIBDIR_PATH=\"$(slibdir)\" \
|
||||||
-DROOTSBINDIR_PATH=\"$(rootsbindir)\" \
|
-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
|
# In support_timespec_check_in_range we may be passed a very tight
|
||||||
# range for which we should produce a correct result for expected
|
# range for which we should produce a correct result for expected
|
||||||
|
|
|
@ -144,6 +144,8 @@ extern const char support_slibdir_prefix[];
|
||||||
extern const char support_install_rootsbindir[];
|
extern const char support_install_rootsbindir[];
|
||||||
/* Corresponds to the install's compiled locale directory. */
|
/* Corresponds to the install's compiled locale directory. */
|
||||||
extern const char support_complocaledir_prefix[];
|
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
|
/* 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
|
is created. If TO is a regular file, it is truncated before
|
||||||
|
|
|
@ -92,3 +92,10 @@ const char support_complocaledir_prefix[] = COMPLOCALEDIR_PATH;
|
||||||
#else
|
#else
|
||||||
# error please -DCOMPLOCALEDIR_PATH=something in the Makefile
|
# error please -DCOMPLOCALEDIR_PATH=something in the Makefile
|
||||||
#endif
|
#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
|
||||||
|
|
Loading…
Add table
Reference in a new issue