summaryrefslogtreecommitdiff
path: root/externals/opus
diff options
context:
space:
mode:
authorGravatar H27CK2020-04-22 08:20:12 +0200
committerGravatar H27CK2020-04-22 08:20:12 +0200
commit52e66779e714d4de47edec83f86e35f41685f758 (patch)
tree97d26bcf236b9ec465c169fd691b8ccaa13c4edb /externals/opus
parentMerge pull request #3699 from FearlessTobi/port-5185 (diff)
downloadyuzu-52e66779e714d4de47edec83f86e35f41685f758.tar.gz
yuzu-52e66779e714d4de47edec83f86e35f41685f758.tar.xz
yuzu-52e66779e714d4de47edec83f86e35f41685f758.zip
Set _FORTIFY_SOURCE=0 if building Opus with mingw-w64
Diffstat (limited to 'externals/opus')
-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()
203target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING) 203target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING)
204 204
205if(NOT MSVC) 205if(NOT MSVC)
206 target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2) 206 if(MINGW)
207 target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=0)
208 else()
209 target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2)
210 endif()
207endif() 211endif()
208 212
209# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99 213# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99