|
|
446cf2 |
commit cb81264fd9973cd95bbc71495185b98979d28918
|
|
|
446cf2 |
Author: Florian Weimer <fweimer@redhat.com>
|
|
|
446cf2 |
Date: Fri Dec 11 17:24:08 2020 +0100
|
|
|
446cf2 |
|
|
|
446cf2 |
support: Add support_slibdir_prefix variable
|
|
|
446cf2 |
|
|
|
446cf2 |
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
|
|
|
446cf2 |
|
|
|
446cf2 |
diff --git a/support/Makefile b/support/Makefile
|
|
|
446cf2 |
index 35b21b19a248ba7f..dcf3c4baa2a31070 100644
|
|
|
446cf2 |
--- a/support/Makefile
|
|
|
446cf2 |
+++ b/support/Makefile
|
|
|
446cf2 |
@@ -184,6 +184,7 @@ CFLAGS-support_paths.c = \
|
|
|
446cf2 |
-DLIBDIR_PATH=\"$(libdir)\" \
|
|
|
446cf2 |
-DBINDIR_PATH=\"$(bindir)\" \
|
|
|
446cf2 |
-DSBINDIR_PATH=\"$(sbindir)\" \
|
|
|
446cf2 |
+ -DSLIBDIR_PATH=\"$(slibdir)\" \
|
|
|
446cf2 |
-DROOTSBINDIR_PATH=\"$(rootsbindir)\" \
|
|
|
446cf2 |
-DCOMPLOCALEDIR_PATH=\"$(complocaledir)\"
|
|
|
446cf2 |
|
|
|
446cf2 |
diff --git a/support/support.h b/support/support.h
|
|
|
446cf2 |
index 6f7f804847f67600..f50f8cc1496d657d 100644
|
|
|
446cf2 |
--- a/support/support.h
|
|
|
446cf2 |
+++ b/support/support.h
|
|
|
446cf2 |
@@ -110,6 +110,8 @@ extern const char support_libdir_prefix[];
|
|
|
446cf2 |
extern const char support_bindir_prefix[];
|
|
|
446cf2 |
/* Corresponds to the install's sbin/ directory. */
|
|
|
446cf2 |
extern const char support_sbindir_prefix[];
|
|
|
446cf2 |
+/* Corresponds to the install's system /lib or /lib64 directory. */
|
|
|
446cf2 |
+extern const char support_slibdir_prefix[];
|
|
|
446cf2 |
/* Corresponds to the install's sbin/ directory (without prefix). */
|
|
|
446cf2 |
extern const char support_install_rootsbindir[];
|
|
|
446cf2 |
/* Corresponds to the install's compiled locale directory. */
|
|
|
446cf2 |
diff --git a/support/support_paths.c b/support/support_paths.c
|
|
|
446cf2 |
index 6b15fae0f0173b1e..be61c8acee3ec1a5 100644
|
|
|
446cf2 |
--- a/support/support_paths.c
|
|
|
446cf2 |
+++ b/support/support_paths.c
|
|
|
446cf2 |
@@ -72,6 +72,13 @@ const char support_sbindir_prefix[] = SBINDIR_PATH;
|
|
|
446cf2 |
# error please -DSBINDIR_PATH=something in the Makefile
|
|
|
446cf2 |
#endif
|
|
|
446cf2 |
|
|
|
446cf2 |
+#ifdef SLIBDIR_PATH
|
|
|
446cf2 |
+/* Corresponds to the system /lib or /lib64 directory. */
|
|
|
446cf2 |
+const char support_slibdir_prefix[] = SLIBDIR_PATH;
|
|
|
446cf2 |
+#else
|
|
|
446cf2 |
+# error please -DSLIBDIR_PATH=something in the Makefile
|
|
|
446cf2 |
+#endif
|
|
|
446cf2 |
+
|
|
|
446cf2 |
#ifdef ROOTSBINDIR_PATH
|
|
|
446cf2 |
/* Corresponds to the install's sbin/ directory. */
|
|
|
446cf2 |
const char support_install_rootsbindir[] = ROOTSBINDIR_PATH;
|