diff --git a/icu.spec b/icu.spec index 3344bfe..edf6cf6 100644 --- a/icu.spec +++ b/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