diff --git a/debian/patches/002-add-fortify-flags.patch b/debian/patches/002-add-fortify-flags.patch new file mode 100644 index 0000000..353d826 --- /dev/null +++ b/debian/patches/002-add-fortify-flags.patch @@ -0,0 +1,15 @@ +Description: Add the FORTIFY_SOURCE build flag +Author: Alan M Varghese +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) diff --git a/debian/patches/series b/debian/patches/series index f507985..183ed31 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,2 @@ -# You must remove unused comment lines for the released package. 001-create-directories-in-install-path.patch +002-add-fortify-flags.patch