From 8362de845698c4ce5ac55dc7d518209ebd3c9cf9 Mon Sep 17 00:00:00 2001 From: Fedir Zadniprovskyi Date: Wed, 23 Oct 2024 19:26:51 -0700 Subject: [PATCH] fix: espeak build Based on https://github.com/rhasspy/piper-phonemize/pull/29 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec7b501..8dec80d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,9 @@ if(NOT DEFINED ESPEAK_NG_DIR) CMAKE_ARGS -DUSE_SPEECHPLAYER:BOOL=OFF CMAKE_ARGS -DEXTRA_cmn:BOOL=ON CMAKE_ARGS -DEXTRA_ru:BOOL=ON - CMAKE_ARGS -DCMAKE_C_FLAGS="-D_FILE_OFFSET_BITS=64" + CMAKE_ARGS -DCMAKE_C_FLAGS="-D_FILE_OFFSET_BITS=64 -fPIC" + CMAKE_ARGS -DCMAKE_CXX_FLAGS="-fPIC" + CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE=ON ) add_dependencies(piper_phonemize espeak_ng_external) endif()