Use C++98 and disable Null pointer check optimizations

Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
cherry530 2022-03-18 17:45:13 +08:00
parent dfa28975f7
commit 16e51ba2e1

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