File: 0001-don-t-overwrite-CMAKE_CXX_FLAGS-by-CMAKE_C_FLAGS.patch

package info (click to toggle)
deepin-terminal 5.9.51%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,056 kB
  • sloc: cpp: 41,799; sh: 246; exp: 37; makefile: 18
file content (22 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: rewine <luhongxu@deepin.org>
Date: Mon, 6 Mar 2023 16:22:31 +0800
Subject: don't overwrite CMAKE_CXX_FLAGS by CMAKE_C_FLAGS

Origin: https://github.com/linuxdeepin/deepin-terminal/commit/e8661679ef89317c
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07cfb2f..30033e6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,7 @@ else()
 endif()
 
 #Use deepin-turbo for Performance optimization
-set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wl,--as-needed -fPIE")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--as-needed -fPIE")
 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
 #安全编译参数
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy")