adjust flags for elbrus

This commit is contained in:
Alexander Stefanov 2022-03-21 20:32:14 +00:00
parent 2bab919531
commit 4cf1b1ebb3

View file

@ -219,7 +219,10 @@ 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'
%endif
# If we want crosscompile icu we need to built ICU package
# and add --with-cross-build=/path/to/icu
# disable bits and do unset TARGET twice, after configure