diff options
author | H27CK <[email protected]> | 2020-04-22 08:20:12 +0200 |
---|---|---|
committer | H27CK <[email protected]> | 2020-04-22 08:20:12 +0200 |
commit | 52e66779e714d4de47edec83f86e35f41685f758 (patch) | |
tree | 97d26bcf236b9ec465c169fd691b8ccaa13c4edb /externals/opus | |
parent | e84f82a028228002b8ac74ac4d351aa40108c653 (diff) | |
download | yuzu-mainline-52e66779e714d4de47edec83f86e35f41685f758.tar.gz yuzu-mainline-52e66779e714d4de47edec83f86e35f41685f758.zip |
Set _FORTIFY_SOURCE=0 if building Opus with mingw-w64
Diffstat (limited to 'externals/opus')
-rw-r--r-- | externals/opus/CMakeLists.txt | 6 |
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 |