1
Description: Use build flags from environment (dpkg-buildflags).
2
Necessary for hardening flags.
3
Author: Simon Ruderich <simon@ruderich.org>
4
Last-Update: 2012-04-17
6
--- kvirc-4.1.3+20111124.svn5988.orig/CMakeLists.txt
7
+++ kvirc-4.1.3+20111124.svn5988/CMakeLists.txt
8
@@ -220,8 +220,8 @@ ELSE()
10
IF(CMAKE_COMPILER_IS_GNUCXX)
12
- SET(CMAKE_CXX_FLAGS "-O3 -fomit-frame-pointer -DNDEBUG --no-enforce-eh-specs -pipe --exec-charset=UTF-8 --input-charset=UTF-8 --no-implement-inlines --unit-at-a-time --fast-math")
13
- SET(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -DNDEBUG --no-enforce-eh-specs -pipe --exec-charset=UTF-8 --input-charset=UTF-8 --no-implement-inlines --unit-at-a-time --fast-math")
14
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fomit-frame-pointer -DNDEBUG --no-enforce-eh-specs -pipe --exec-charset=UTF-8 --input-charset=UTF-8 --no-implement-inlines --unit-at-a-time --fast-math")
15
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fomit-frame-pointer -DNDEBUG --no-enforce-eh-specs -pipe --exec-charset=UTF-8 --input-charset=UTF-8 --no-implement-inlines --unit-at-a-time --fast-math")
16
INCLUDE(CheckCXXCompilerFlag)
17
CHECK_CXX_COMPILER_FLAG("-fvisibility-inlines-hidden" CXX_HAS_VIH_FLAG)
18
#gcc doesn't support visibility on PE/win32