mirror of
https://abf.rosa.ru/djam/icu.git
synced 2025-02-23 19:02:50 +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
|
# (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
|
||||||
|
|
Loading…
Add table
Reference in a new issue