From f0e1e244bb7bc124aa6d218045669b59b306685e Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 24 2021 01:32:35 +0000 Subject: Apply patch glibc-rh1882466-1.patch patch_name: glibc-rh1882466-1.patch present_in_specfile: true location_in_specfile: 534 --- diff --git a/support/Makefile b/support/Makefile index 35b21b1..dcf3c4b 100644 --- a/support/Makefile +++ b/support/Makefile @@ -184,6 +184,7 @@ CFLAGS-support_paths.c = \ -DLIBDIR_PATH=\"$(libdir)\" \ -DBINDIR_PATH=\"$(bindir)\" \ -DSBINDIR_PATH=\"$(sbindir)\" \ + -DSLIBDIR_PATH=\"$(slibdir)\" \ -DROOTSBINDIR_PATH=\"$(rootsbindir)\" \ -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\" diff --git a/support/support.h b/support/support.h index 6f7f804..f50f8cc 100644 --- a/support/support.h +++ b/support/support.h @@ -110,6 +110,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. */ diff --git a/support/support_paths.c b/support/support_paths.c index 6b15fae..be61c8a 100644 --- a/support/support_paths.c +++ b/support/support_paths.c @@ -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;