support: Add support_slibdir_prefix variable

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer 2020-12-11 17:24:08 +01:00
parent cd543b5eb3
commit cb81264fd9
3 changed files with 10 additions and 0 deletions

View file

@ -196,6 +196,7 @@ CFLAGS-support_paths.c = \
-DLIBDIR_PATH=\"$(libdir)\" \
-DBINDIR_PATH=\"$(bindir)\" \
-DSBINDIR_PATH=\"$(sbindir)\" \
-DSLIBDIR_PATH=\"$(slibdir)\" \
-DROOTSBINDIR_PATH=\"$(rootsbindir)\" \
-DCOMPLOCALEDIR_PATH=\"$(complocaledir)\"

View file

@ -114,6 +114,8 @@ extern const char support_libdir_prefix[];
extern const char support_bindir_prefix[];
/* Corresponds to the install's sbin/ directory. */
extern const char support_sbindir_prefix[];
/* Corresponds to the install's system /lib or /lib64 directory. */
extern const char support_slibdir_prefix[];
/* Corresponds to the install's sbin/ directory (without prefix). */
extern const char support_install_rootsbindir[];
/* Corresponds to the install's compiled locale directory. */

View file

@ -72,6 +72,13 @@ const char support_sbindir_prefix[] = SBINDIR_PATH;
# error please -DSBINDIR_PATH=something in the Makefile
#endif
#ifdef SLIBDIR_PATH
/* Corresponds to the system /lib or /lib64 directory. */
const char support_slibdir_prefix[] = SLIBDIR_PATH;
#else
# error please -DSLIBDIR_PATH=something in the Makefile
#endif
#ifdef ROOTSBINDIR_PATH
/* Corresponds to the install's sbin/ directory. */
const char support_install_rootsbindir[] = ROOTSBINDIR_PATH;