Merge pull request #3759 from H27CK/opus-mingw-w64

Set _FORTIFY_SOURCE=0 if building Opus with mingw-w64
merge-requests/60/head
Mat M 2020-04-22 17:45:44 +07:00 committed by GitHub
commit 6ce3d174b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

@ -203,7 +203,11 @@ endif()
target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING)
if(NOT MSVC)
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