!24 Use C++98 and disable NULL pointer check optimizations 规避 命令崩溃问题

From: @cherry530 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-03-19 07:47:19 +00:00 committed by Gitee
commit 1fc1ede0ce
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: festival
Version: 1.96
Release: 43
Release: 44
Summary: Festival Speech Synthesis System
License: MIT and GPL+ and TCL
URL: http://www.cstr.ed.ac.uk/projects/festival/
@ -182,7 +182,7 @@ pushd speech_tools
%configure
make \
CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing -fno-delete-null-pointer-checks -std=gnu++98"
popd
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/src/lib
@ -191,8 +191,7 @@ export PATH=$(pwd)/bin:$PATH
make \
FTLIBDIR="%{_datadir}/festival/lib" \
CFLAGS="$RPM_OPT_FLAGS -fPIC" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-delete-null-pointer-checks -std=gnu++98"
pushd lib/dicts/cmu
make
popd
@ -354,6 +353,9 @@ fi
%{_mandir}/man1/*
%changelog
* Tue Mar 15 2022 yaoxin <yaoxin30@huawei.com> - 1.96-44
- Use C++98 and disable NULL pointer check optimizations
* Tue Mar 15 2022 yaoxin <yaoxin30@huawei.com> - 1.96-43
- Fix CVE-2010-3996