!20 修复由于gcc升级导致编译失败。

From: @liheavy
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-08-02 01:58:39 +00:00 committed by Gitee
commit fa7e940370

View File

@ -4,7 +4,7 @@
Name: texlive-base
Version: 20180414
Release: 30
Release: 31
Epoch: 7
Summary: TeX formatting system
License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils
@ -5850,8 +5850,8 @@ done
%global mysources %{lua: for index,value in ipairs(sources) do if index >= 16 then print(value.." ") end end}
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security"
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security"
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security -fcommon"
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security -fcommon"
export LDFLAGS="%{build_ldflags}"
cd source
PREF=`pwd`/inst
@ -8096,6 +8096,9 @@ done <<< "$list"
%doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/
%changelog
* Sat Jul 31 2021 Haiwei Li <lihaiwei8@huawei.com> - 20180414-31
- Fix compilation failed due to multiple definition
* Wed 30 Jun 2021 sunguoshuai <sunguoshuai@huawei.com> - 20180414-30
- Fix build error when srctopdf is ok