From e33b0e319728b8910e784de0be29ea56dea26892 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 19 Jan 2018 15:11:38 +0100 Subject: [PATCH] glibc_post_upgrade: Move LD_SO_CONF definition into source file --- glibc.spec | 1 - glibc_post_upgrade.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 258dbf9..267bad7 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1011,7 +1011,6 @@ pushd build-%{target} $GCC -static -L. -Os -g %{SOURCE2} \ -o glibc_post_upgrade.%{_target_cpu} \ '-DGCONV_MODULES_DIR="%{_libdir}/gconv"' \ - '-DLD_SO_CONF="/etc/ld.so.conf"' \ '-DICONVCONFIG="%{_sbindir}/iconvconfig.%{_target_cpu}"' popd diff --git a/glibc_post_upgrade.c b/glibc_post_upgrade.c index 1658507..a49f23d 100644 --- a/glibc_post_upgrade.c +++ b/glibc_post_upgrade.c @@ -11,6 +11,8 @@ #include #include +#define LD_SO_CONF "/etc/ld.so.conf" + #define verbose_exec(failcode, path...) \ do \ { \