diff --git a/CMakeLists.txt b/CMakeLists.txt index ab2b6107e..f64e92b0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,6 +321,8 @@ if (USE_SNDFILE) set(OPUS_LIBRARY opus CACHE STRING "Opus library" FORCE) add_subdirectory(extern/libogg EXCLUDE_FROM_ALL) add_subdirectory(extern/libvorbis EXCLUDE_FROM_ALL) + set(WITH_FORTIFY_SOURCE OFF CACHE BOOL "Enable Fortify Source" FORCE) + set(WITH_STACK_PROTECTOR OFF CACHE BOOL "Enable Fortify Source" FORCE) add_subdirectory(extern/flac EXCLUDE_FROM_ALL) endif() diff --git a/extern/flac/CMakeLists.txt b/extern/flac/CMakeLists.txt index 0ef0b6954..02849e715 100644 --- a/extern/flac/CMakeLists.txt +++ b/extern/flac/CMakeLists.txt @@ -14,8 +14,8 @@ option(BUILD_PROGRAMS "Build and install programs" OFF) option(BUILD_EXAMPLES "Build and install examples" OFF) option(BUILD_TESTING "Build tests" OFF) option(BUILD_DOCS "Build and install doxygen documents" OFF) -option(WITH_FORTIFY_SOURCE "Enable protection against buffer overflows" ON) -option(WITH_STACK_PROTECTOR "Enable GNU GCC stack smash protection" ON) +option(WITH_FORTIFY_SOURCE "Enable protection against buffer overflows" OFF) +option(WITH_STACK_PROTECTOR "Enable GNU GCC stack smash protection" OFF) option(INSTALL_MANPAGES "Install MAN pages" OFF) option(INSTALL_PKGCONFIG_MODULES "Install PkgConfig modules" OFF) option(INSTALL_CMAKE_CONFIG_MODULE "Install CMake package-config module" OFF)