!11 fix build error with gcc 12.3.0

From: @zhouwenpei 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2023-07-05 03:04:01 +00:00 committed by Gitee
commit cecdca4bf5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: source-highlight Name: source-highlight
Version: 3.1.9 Version: 3.1.9
Release: 2 Release: 3
Summary: Source Code Highlighter with Support for Many Languages Summary: Source Code Highlighter with Support for Many Languages
License: GPLv3+ License: GPLv3+
URL: http://www.gnu.org/software/src-highlite URL: http://www.gnu.org/software/src-highlite
@ -35,6 +35,7 @@ Header files for source-highlight
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
export CXXFLAGS="%{optflags} -std=c++14"
%configure --with-boost-regex=boost_regex %configure --with-boost-regex=boost_regex
%make_build %make_build
@ -83,6 +84,9 @@ popd
%exclude %{_datadir}/info/dir %exclude %{_datadir}/info/dir
%changelog %changelog
* Tue Jul 04 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 3.1.9-3
- DESC: fix build error with gcc 12.3.0
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.1.9-2 * Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.1.9-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git - DESC: delete -S git from %autosetup, and delete BuildRequires git