From 4fccfb142e8c4e06cd48f2a05eb223d530f9ea26 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 28 Dec 2024 14:01:45 +0100 Subject: [PATCH] cmake: avoid security cookies in SDL_uclibc when building with -DSDL_LIBC=ON --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea6901642e..5c4f9cbd41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1894,8 +1894,10 @@ elseif(WINDOWS) if(TARGET SDL3-shared AND MSVC AND NOT SDL_LIBC) # Prevent codegen that would use the VC runtime libraries. target_compile_options(SDL3-shared PRIVATE $<$:/GS-> $<$:/Gs1048576>) + target_compile_options(SDL_uclibc PRIVATE $<$:/GS-> $<$:/Gs1048576>) if(SDL_CPU_X86) target_compile_options(SDL3-shared PRIVATE "/arch:SSE") + target_compile_options(SDL3-SDL_uclibc PRIVATE "/arch:SSE") endif() endif()