[packages/hyprland] add flags patch to eliminate -O3

atler atler at pld-linux.org
Mon Aug 12 20:14:48 CEST 2024


commit 4167b5677f53f4cecfdbbcc841e40b2463e26dca
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Aug 11 14:55:12 2024 +0200

    add flags patch to eliminate -O3

 flags.patch   | 10 ++++++++++
 hyprland.spec |  2 ++
 2 files changed, 12 insertions(+)
---
diff --git a/hyprland.spec b/hyprland.spec
index f3649c2..3f25652 100644
--- a/hyprland.spec
+++ b/hyprland.spec
@@ -7,6 +7,7 @@ Group:		Applications
 #Source0Download: https://github.com/hyprwm/hyprland/releases
 Source0:	https://github.com/hyprwm/hyprland/releases/download/v%{version}/source-v%{version}.tar.gz
 # Source0-md5:	8cb78f78407f12a72ed710a19116abae
+Patch0:		flags.patch
 URL:		https://hyprland.org/
 BuildRequires:	Mesa-libgbm-devel
 BuildRequires:	OpenGLESv3-devel
@@ -78,6 +79,7 @@ Header files for hyprland.
 
 %prep
 %setup -q -n %{name}-source
+%patch0 -p1
 
 %build
 %cmake -B build
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..86ce1fa
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,10 @@
+--- hyprland-source/CMakeLists.txt.orig	2024-06-25 14:16:21.000000000 +0200
++++ hyprland-source/CMakeLists.txt	2024-08-11 14:52:32.295218303 +0200
+@@ -77,7 +77,6 @@
+     message(STATUS "Configuring Hyprland in Debug with CMake")
+     add_compile_definitions(HYPRLAND_DEBUG)
+ else()
+-    add_compile_options(-O3)
+     message(STATUS "Configuring Hyprland in Release with CMake")
+ endif()
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hyprland.git/commitdiff/e13685e9ce149cdbbf30e0e4b04be47b710ab9f6



More information about the pld-cvs-commit mailing list