18 lines
739 B
Diff
18 lines
739 B
Diff
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)
|
|
|