Refresh patches

This commit is contained in:
Chow Loong Jin 2025-08-24 17:51:40 +08:00
parent ad6e3a8804
commit 79d922924c
1 changed files with 9 additions and 6 deletions

View File

@ -5,14 +5,17 @@ Description: Add FORTIFY_SOURCE flag directly in Makefile
Author: Alan M Varghese
Last-Update: 2024-10-11
Forwarded: not-needed
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,7 +85,7 @@
-Wno-missing-field-initializers
-Wno-narrowing
Index: hyprland/CMakeLists.txt
===================================================================
--- hyprland.orig/CMakeLists.txt 2025-08-24 17:50:02.382289920 +0800
+++ hyprland/CMakeLists.txt 2025-08-24 17:51:13.964464136 +0800
@@ -92,7 +92,8 @@
-Wno-pointer-arith
-Wno-clobbered
-Wpedantic
- -fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=)
+ -fmacro-prefix-map=${CMAKE_SOURCE_DIR}/= -D_FORTIFY_SOURCE=2)
+ -fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=
+ -D_FORTIFY_SOURCE=2)
set(CMAKE_EXECUTABLE_ENABLE_EXPORTS TRUE)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)