Disable fortification and stack protection in FLAC and Opus in libretro builds

The Emscripten build doesn't support stack protection. Besides, if we
really wanted to enable fortification and stack protection, we would
enable it for the entire application instead of enabling it for only
these two libraries.
This commit is contained in:
刘皓 2025-02-10 12:58:33 -05:00
parent fdee58f33d
commit d5dff61ed3
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -142,6 +142,8 @@ if get_option('retro') == true
'ENABLE_MULTITHREADING': false, 'ENABLE_MULTITHREADING': false,
'INSTALL_MANPAGES': false, 'INSTALL_MANPAGES': false,
'WITH_OGG': false, 'WITH_OGG': false,
'WITH_FORTIFY_SOURCE': false,
'WITH_STACK_PROTECTOR': false,
}) })
opus_options = cmake.subproject_options() opus_options = cmake.subproject_options()
@ -156,6 +158,8 @@ if get_option('retro') == true
'OPUS_FLOAT_APPROX': false, 'OPUS_FLOAT_APPROX': false,
'OPUS_BUILD_FRAMEWORK': false, 'OPUS_BUILD_FRAMEWORK': false,
'OPUS_STATIC_RUNTIME': false, 'OPUS_STATIC_RUNTIME': false,
'OPUS_FORTIFY_SOURCE': false,
'OPUS_STACK_PROTECTOR': false,
}) })
mpg123_options = cmake.subproject_options() mpg123_options = cmake.subproject_options()