hyprpaper/debian/patches/002-add-fortify-flags.patch

16 lines
610 B
Diff

Description: Add the FORTIFY_SOURCE build flag
Author: Alan M Varghese <alan@digistorm.in>
Last-Update: 2024-03-09
Forwarded: not-needed
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,7 @@
include_directories(.)
add_compile_options(-std=c++2b -DWLR_USE_UNSTABLE )
-add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing)
+add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -D_FORTIFY_SOURCE=2)
find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)