File: strip-optim-flags.patch

package info (click to toggle)
grandorgue 3.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,828 kB
  • sloc: xml: 64,261; cpp: 53,368; sh: 596; makefile: 8
file content (38 lines) | stat: -rw-r--r-- 1,172 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Strip some optimizations flags hardcoded in upstream build system
 Remove flags that would override those set by dpkg-buildflags.
 Also remove x86-specific flags.
 Do not remove -funroll-loops and -ffast-math, since upstream probably added
 them for a good reason, and they are not triggered by any -O level.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-23
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,10 +123,7 @@ add_option(-Wall)
 if (CMAKE_BUILD_TYPE STREQUAL "Debug")
   add_option(-g3)
 else()
-  add_option(-O3)
-  add_option(-g)
   add_definitions(-DNDEBUG)
-  add_option(-fomit-frame-pointer)
   add_option(-funroll-loops)
   add_option(-ffast-math)
 endif ()
--- a/cmake/AddCpuOptions.cmake
+++ b/cmake/AddCpuOptions.cmake
@@ -5,12 +5,3 @@
 
 include(${CMAKE_SOURCE_DIR}/cmake/AddCXXOption.cmake)
 
-if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
-add_cxx_option(-mmmx)
-add_cxx_option(-msse)
-add_cxx_option(-msse2)
-add_cxx_option(-msse3)
-endif()
-
-add_cxx_option(-mstackrealign)
-