From 600140832ec241b21f94a36a00696f12c634ba0b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 Apr 2022 08:09:26 +0200 Subject: [PATCH] Revert "Simplify setting of CFLAGS/LDFLAGS to avoid issue with package notes" This reverts commit 4bc4dc6eb1c9769136806e5a576dace7900b26f9. --- redis.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis.spec b/redis.spec index 9a7a38b..dc3215b 100644 --- a/redis.spec +++ b/redis.spec @@ -146,13 +146,13 @@ if test "$api" != "%{redis_modules_abi}"; then exit 1 fi -%global make_flags DEBUG="" V="echo" LDFLAGS="$LDFLAGS" CFLAGS+="$CFLAGS -fPIC" INSTALL="install -p" PREFIX=%{buildroot}%{_prefix} BUILD_WITH_SYSTEMD=yes BUILD_TLS=yes +%global make_flags DEBUG="" V="echo" LDFLAGS="%{?__global_ldflags}" CFLAGS+="%{optflags} -fPIC" INSTALL="install -p" PREFIX=%{buildroot}%{_prefix} BUILD_WITH_SYSTEMD=yes BUILD_TLS=yes %build %make_build %{make_flags} all %install -%make_install %{make_flags} +make %{make_flags} install # Filesystem. install -d %{buildroot}%{_sharedstatedir}/%{name}