65c41c1
diff -ur yoshimi-1.5.1/src/CMakeLists.txt yoshimi-1.5.1.new/src/CMakeLists.txt
65c41c1
--- yoshimi-1.5.1/src/CMakeLists.txt	2017-03-30 13:57:26.000000000 +0100
65c41c1
+++ yoshimi-1.5.1.new/src/CMakeLists.txt	2017-04-09 19:47:52.797194278 +0100
65c41c1
@@ -41,6 +41,7 @@
2bd7dda
     # relative paths break some scripts(?)
2bd7dda
 set (CMAKE_SKIP_RULE_DEPENDENCY OFF)
2bd7dda
     # Rebuild objects if rules have changed, even if source hasn't.
65c41c1
+set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
2bd7dda
 
2bd7dda
 message (STATUS "Building Yoshimi version ${YOSHIMI_VERSION} for ${CMAKE_SYSTEM_NAME}")
2bd7dda
 
65c41c1
@@ -82,12 +83,12 @@
65c41c1
 option (ShowNoteOnTimes "Report Note-On Times" OFF)
2bd7dda
 
2bd7dda
 set (BuildOptions_x86_64AMD
0eb4f9c
-    "-O3 -march=athlon64 -m64 -Wall -ffast-math -fno-finite-math-only -fomit-frame-pointer"
2bd7dda
+  ${CMAKE_C_FLAGS}
2bd7dda
   CACHE STRING "X86_64 compiler options"
2bd7dda
 )
2bd7dda
 
2bd7dda
 set (BuildOptions_X86_64Core2
0eb4f9c
-    "-O3 -march=core2 -m64 -Wall -ffast-math -fno-finite-math-only -fomit-frame-pointer"
2bd7dda
+  ${CMAKE_C_FLAGS}
2bd7dda
   CACHE STRING "X86_64 compiler options"
2bd7dda
 )
2bd7dda
 
65c41c1
@@ -102,7 +103,7 @@
65c41c1
 )
65c41c1
 
2bd7dda
 set (BuildOptionsBasic
0eb4f9c
-    "-O3 -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer"
65c41c1
+    ${CMAKE_C_FLAGS}
65c41c1
     CACHE STRING "basic X86 complier options"
2bd7dda
 )
2bd7dda