Revert "Simplify setting of CFLAGS/LDFLAGS to avoid issue with package notes"

This reverts commit 4bc4dc6eb1.
This commit is contained in:
Remi Collet 2022-04-28 08:09:26 +02:00
parent 4bc4dc6eb1
commit 600140832e

View File

@ -146,13 +146,13 @@ if test "$api" != "%{redis_modules_abi}"; then
exit 1 exit 1
fi 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 %build
%make_build %{make_flags} all %make_build %{make_flags} all
%install %install
%make_install %{make_flags} make %{make_flags} install
# Filesystem. # Filesystem.
install -d %{buildroot}%{_sharedstatedir}/%{name} install -d %{buildroot}%{_sharedstatedir}/%{name}