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