fix for elbrus

This commit is contained in:
Alexander Stefanov 2022-03-22 07:34:39 +00:00
parent 4cf1b1ebb3
commit 2177e3f858

View file

@ -219,9 +219,11 @@ pushd source
# (tpg) needed for patch 2
export CFLAGS='%{optflags} -fno-strict-aliasing'
export CXXFLAGS='%{optflags} -fno-strict-aliasing -std=c++14'
# no bfd flag on elbrus
%ifnarch %{e2k}
export LDFLAGS='%{ldflags} -fuse-ld=bfd'
# no bfd flag on elbrus
# and issues with lcc
%ifarch %{e2k}
export LDFLAGS='%{ldflags} -lstdc++'
%endif
# If we want crosscompile icu we need to built ICU package
# and add --with-cross-build=/path/to/icu
@ -258,8 +260,8 @@ touch -d "10 years ago" data/out/tmp/icudata.lst
%if %{with crosscompile}
unset TARGET
%endif
%make
%make doc
%make_build
%make_build doc
popd
#% check
@ -271,7 +273,7 @@ popd
%if %{with crosscompile}
unset TARGET
%endif
%makeinstall_std -C source
%make_install -C source
cd %{buildroot}%{_libdir}
for c in %compatible; do