From d5dff61ed3062ff985e78638e9a1e6630a060613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Mon, 10 Feb 2025 12:58:33 -0500 Subject: [PATCH] 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. --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 717df69f..8eb5163e 100644 --- a/meson.build +++ b/meson.build @@ -142,6 +142,8 @@ if get_option('retro') == true 'ENABLE_MULTITHREADING': false, 'INSTALL_MANPAGES': false, 'WITH_OGG': false, + 'WITH_FORTIFY_SOURCE': false, + 'WITH_STACK_PROTECTOR': false, }) opus_options = cmake.subproject_options() @@ -156,6 +158,8 @@ if get_option('retro') == true 'OPUS_FLOAT_APPROX': false, 'OPUS_BUILD_FRAMEWORK': false, 'OPUS_STATIC_RUNTIME': false, + 'OPUS_FORTIFY_SOURCE': false, + 'OPUS_STACK_PROTECTOR': false, }) mpg123_options = cmake.subproject_options()