Package: yoshimi / 1.5.10.1-1

01-gcc_flags.patch Patch series | download
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
Author: Alessio Treglia <alessio@debian.org>
Origin: Debian
Description: Drop GCC options which are not supported on all architectures.
Bug: http://bugs.debian.org/584492
Forwarded: yes
---
 src/CMakeLists.txt |    4 ++++
 1 file changed, 4 insertions(+)

--- yoshimi.orig/src/CMakeLists.txt
+++ yoshimi/src/CMakeLists.txt
@@ -130,6 +130,9 @@
 set (BuildOptionsRelease
     "-O3" CACHE STRING "Compile with optimisation for Release builds")
 
+set (BuildOptionsDebian
+    "-O3 -ffast-math -fomit-frame-pointer -ldl" CACHE STRING "Debian build flags")
+
 find_package (PkgConfig REQUIRED)
 if (PKG_CONFIG_FOUND)
     message(STATUS "Found pkg-config ${PKG_CONFIG_EXECUTABLE}")
@@ -331,8 +334,8 @@
     message (STATUS "DEBUG Build, flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}")
 else (BuildForDebug)
     set (CMAKE_BUILD_TYPE "Release")
-    set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsRelease})
-    message (STATUS "RELEASE Build, flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}")
+    set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsDebian})
+    message (STATUS "RELEASE/Debian Build, flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}")
 endif (BuildForDebug)
 
 configure_file(