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