Remove fortify patch

This commit is contained in:
alan (NyxTrail) 2024-06-17 06:03:29 +00:00
parent 19ab5a5ed6
commit ad9c24ebe7
No known key found for this signature in database
GPG Key ID: 32C5D29762C48D4A
1 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
Description: Add FORTIFY_SOURCE flag directly in Makefile
The flag, otherwise, doesn't seem to propogate correctly to all
modules built by the project.
Author: Alan M Varghese
Last-Update: 2024-03-01
Forwarded: not-needed
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,7 @@
"protocols/")
set(CMAKE_CXX_STANDARD 23)
add_compile_definitions(WLR_USE_UNSTABLE)
-add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith)
+add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -D_FORTIFY_SOURCE=2)
add_link_options(-rdynamic)
set(CMAKE_ENABLE_EXPORTS TRUE)