audio/festival: fix build with clang 16
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because audio/festival's build infrastructure does not explicitly set its C++ standard, this leads to an error: regexp.cc:178:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] STATIC char *regnext(register char *p); ^~~~~~~~~ To work around the error, add USE_CXXSTD=gnu++11 to compile for C++11 with GNU extensions instead. While here, pet portlint a little. PR: 272014 Approved by: fernape MFH: 2023Q2
This commit is contained in:
parent
a579bac9a2
commit
9a521a21bc
1 changed files with 3 additions and 1 deletions
|
@ -24,12 +24,14 @@ MAINTAINER= mi@aldan.algebra.com
|
|||
COMMENT= Multi-lingual speech synthesis system
|
||||
WWW= https://www.cstr.ed.ac.uk/projects/festival/
|
||||
|
||||
USES= gmake
|
||||
USE_CXXSTD= gnu++11
|
||||
|
||||
OPTIONS_DEFINE= NAS
|
||||
OPTIONS_DEFAULT=NAS
|
||||
|
||||
CXXFLAGS+= -DFTLIBDIR=${LOCALBASE}/share/festival/lib -fno-delete-null-pointer-checks
|
||||
CONFIGURE_WRKSRC=${WRKDIR}/festival
|
||||
USES= gmake
|
||||
SPEECHTOOLS= ${WRKSRC}/speech_tools
|
||||
FESTIVAL= ${WRKSRC}/festival
|
||||
MAKE_ARGS+= CC="${CCACHE_BIN} ${CC}" GCC="${CCACHE_BIN} ${CC}" \
|
||||
|
|
Loading…
Reference in a new issue