Fix SRPM build failure
We need 0%%{?__isa_bits} instead of %%{?__isa_bits} or %%{__isa_bits}, because the __isa_bits macro is not defined at SRPM build time.
This commit is contained in:
parent
592c818131
commit
c790c7c734
|
@ -104,7 +104,7 @@ sed -e "s|^\(CXXFLAGS = \).*|\1%{optflags} $RPM_LD_FLAGS|" \
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
%if %{?__isa_bits} == 32
|
%if 0%{?__isa_bits} == 32
|
||||||
# Reduce the debuginfo level to avoid virtual memory exhaustion
|
# Reduce the debuginfo level to avoid virtual memory exhaustion
|
||||||
CXXFLAGS="${CXXFLAGS-} -g1"
|
CXXFLAGS="${CXXFLAGS-} -g1"
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in New Issue