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 # (tpg) needed for patch 2
export CFLAGS='%{optflags} -fno-strict-aliasing' export CFLAGS='%{optflags} -fno-strict-aliasing'
export CXXFLAGS='%{optflags} -fno-strict-aliasing -std=c++14' export CXXFLAGS='%{optflags} -fno-strict-aliasing -std=c++14'
# no bfd flag on elbrus
%ifnarch %{e2k}
export LDFLAGS='%{ldflags} -fuse-ld=bfd' export LDFLAGS='%{ldflags} -fuse-ld=bfd'
# no bfd flag on elbrus
# and issues with lcc
%ifarch %{e2k}
export LDFLAGS='%{ldflags} -lstdc++'
%endif %endif
# If we want crosscompile icu we need to built ICU package # If we want crosscompile icu we need to built ICU package
# and add --with-cross-build=/path/to/icu # 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} %if %{with crosscompile}
unset TARGET unset TARGET
%endif %endif
%make %make_build
%make doc %make_build doc
popd popd
#% check #% check
@ -271,7 +273,7 @@ popd
%if %{with crosscompile} %if %{with crosscompile}
unset TARGET unset TARGET
%endif %endif
%makeinstall_std -C source %make_install -C source
cd %{buildroot}%{_libdir} cd %{buildroot}%{_libdir}
for c in %compatible; do for c in %compatible; do