summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2020-04-22 23:45:44 +0200
committerGitHub <noreply@github.com>2020-04-22 23:45:44 +0200
commit6ce3d174b767fd60f1f549218ae330da8fab07d5 (patch)
tree25f0e4fbbf82e15d5a099b7e381127a0e3e8934f
parentMerge pull request #3763 from H27CK/vk-cmd (diff)
parentSet _FORTIFY_SOURCE=0 if building Opus with mingw-w64 (diff)
downloadyuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar
yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.gz
yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.bz2
yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.lz
yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.xz
yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.tar.zst
yuzu-6ce3d174b767fd60f1f549218ae330da8fab07d5.zip
-rw-r--r--externals/opus/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/externals/opus/CMakeLists.txt b/externals/opus/CMakeLists.txt
index cbb393272..94a86551f 100644
--- a/externals/opus/CMakeLists.txt
+++ b/externals/opus/CMakeLists.txt
@@ -203,7 +203,11 @@ endif()
target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING)
if(NOT MSVC)
- target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2)
+ if(MINGW)
+ target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=0)
+ else()
+ target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2)
+ endif()
endif()
# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99