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()