22 lines
810 B
Diff
22 lines
810 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. Use 'checksec' and 'hardening-check'
|
|
for verifying fortification on binaries.
|
|
Author: Alan M Varghese
|
|
Last-Update: 2024-10-11
|
|
Forwarded: not-needed
|
|
Index: hyprland/CMakeLists.txt
|
|
===================================================================
|
|
--- hyprland.orig/CMakeLists.txt 2025-09-11 12:43:40.719566353 +0800
|
|
+++ hyprland/CMakeLists.txt 2025-09-11 12:44:01.750322633 +0800
|
|
@@ -93,7 +93,8 @@
|
|
-Wno-narrowing
|
|
-Wno-pointer-arith
|
|
-Wno-clobbered
|
|
- -fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=)
|
|
+ -fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=
|
|
+ -D_FORTIFY_SOURCE=2)
|
|
|
|
set(CMAKE_EXECUTABLE_ENABLE_EXPORTS TRUE)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
|