summaryrefslogtreecommitdiff
path: root/x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-25 04:34:57 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-25 04:34:57 +0100
commita4b2e94700e086166f490c44844ce2f84ee47fc9 (patch)
treec5ad0f5c5bebff9b4912b82d979ccbbfd38d7ebf /x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch
parentfb67845e14cb6b5caf543ac150edc3195df4fd89 (diff)
import sddm, and tweak it to our needs
Diffstat (limited to 'x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch')
-rw-r--r--x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch b/x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch
new file mode 100644
index 00000000..fc450169
--- /dev/null
+++ b/x11-misc/sddm/files/sddm-0.12.0-respect-user-flags.patch
@@ -0,0 +1,26 @@
+diff -u CMakeLists.txt CMakeLists.txt
+--- a/CMakeLists.txt 2015-09-05 22:40:50.000000000 +0200
++++ b/CMakeLists.txt 2015-09-07 12:15:33.419530808 +0200
+@@ -35,22 +35,6 @@
+ # Definitions
+ add_definitions(-Wall -std=c++11 -DQT_NO_CAST_FROM_ASCII)
+
+-# Default build type
+-if(NOT CMAKE_BUILD_TYPE)
+- set(CMAKE_BUILD_TYPE Release)
+-endif()
+-
+-# Handle build type
+-if(CMAKE_BUILD_TYPE MATCHES [Dd]ebug)
+- message(STATUS "Debug build")
+- add_definitions(-DDEBUG)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
+-else()
+- message(STATUS "Release build")
+- add_definitions(-DNDEBUG)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
+-endif()
+-
+ # Default absolute paths
+ if(NOT DEFINED CMAKE_INSTALL_SYSCONFDIR)
+ set(CMAKE_INSTALL_SYSCONFDIR "/etc")