MYARCH defaults to `uname -m` which is host arch while it should
consider %{_target_cpu} instead. %{libarch} happens to be already
normalized to values expected by Makefile
sparc32 \
%endif
%{__make} -j1 all \
-%ifarch x32
- MYARCH=x32 \
-%endif
+ MYARCH=%{libarch} \
prefix=%{dietprefix} \
CC="${CC#*ccache }"
%if %{with dynamic}
# 'dyn' target is not SMP safe
%{__make} -j1 dyn \
-%ifarch x32
- MYARCH=x32 \
-%endif
+ MYARCH=%{libarch} \
prefix=%{dietprefix} \
CC="${CC}"
%endif
sparc32 \
%endif
%{__make} install \
-%ifarch x32
- MYARCH=x32 \
-%endif
+ MYARCH=%{libarch} \
DESTDIR=$RPM_BUILD_ROOT \
prefix=%{dietprefix}