fix LTO warnings
This commit is contained in:
parent
c0b1041dc7
commit
e4919979d2
24
flite-2.2-lto.patch
Normal file
24
flite-2.2-lto.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -up flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h.lto flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h
|
||||
--- flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h.lto 2020-08-13 02:17:09.000000000 +0200
|
||||
+++ flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h 2021-10-06 00:06:41.891126362 +0200
|
||||
@@ -44,7 +44,7 @@ extern "C" {
|
||||
cst_lexicon *cmu_grapheme_lex_init(void);
|
||||
|
||||
extern const int num_unicode_sampa_mapping;
|
||||
-extern const char * const unicode_sampa_mapping[16663][5];
|
||||
+extern const char * const unicode_sampa_mapping[16798][5];
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
diff -up flite-2.2/lang/cmulex/cmu_lex.c.lto flite-2.2/lang/cmulex/cmu_lex.c
|
||||
--- flite-2.2/lang/cmulex/cmu_lex.c.lto 2020-08-13 02:17:09.000000000 +0200
|
||||
+++ flite-2.2/lang/cmulex/cmu_lex.c 2021-10-06 00:05:48.817719935 +0200
|
||||
@@ -46,7 +46,7 @@ extern const int cmu_lex_entry[];
|
||||
extern const unsigned char cmu_lex_data[];
|
||||
extern const int cmu_lex_num_entries;
|
||||
extern const int cmu_lex_num_bytes;
|
||||
-extern const char * const cmu_lex_phone_table[54];
|
||||
+extern const char * const cmu_lex_phone_table[57];
|
||||
extern const char * const cmu_lex_phones_huff_table[];
|
||||
extern const char * const cmu_lex_entries_huff_table[];
|
||||
|
||||
@ -6,6 +6,7 @@ License: MIT
|
||||
URL: http://www.speech.cs.cmu.edu/flite/
|
||||
|
||||
Source0: https://github.com/festvox/flite/archive/v%{version}/flite-%{version}.tar.gz
|
||||
Patch0: flite-2.2-lto.patch
|
||||
# texi2pdf
|
||||
# WARNING see explanation about PDF doc below.
|
||||
#BuildRequires: texinfo-tex
|
||||
@ -34,6 +35,7 @@ Development files for Flite, a small, fast speech synthesis engine.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .lto
|
||||
|
||||
|
||||
%build
|
||||
@ -82,6 +84,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} make -C testsuite do_thread_test
|
||||
- drop obsolete ldconfig_scriptlets macro
|
||||
- enable parallel make
|
||||
- use modern macros
|
||||
- fix LTO warnings
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-38
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user