mirror of
https://abf.rosa.ru/djam/icu.git
synced 2025-02-23 10:52:49 +00:00
fix for elbrus
This commit is contained in:
parent
4cf1b1ebb3
commit
2177e3f858
1 changed files with 7 additions and 5 deletions
12
icu.spec
12
icu.spec
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue