diff --git a/srcpkgs/zynaddsubfx/patches/cmake-build-type-none.patch b/srcpkgs/zynaddsubfx/patches/cmake-build-type-none.patch new file mode 100644 index 0000000000..64e6f1d19d --- /dev/null +++ b/srcpkgs/zynaddsubfx/patches/cmake-build-type-none.patch @@ -0,0 +1,47 @@ +Index: src/CMakeLists.txt +=================================================================== +--- src/CMakeLists.txt.orig ++++ src/CMakeLists.txt +@@ -185,7 +185,6 @@ option (BuildForDebug "Include gdb debug + option (IncludeWhatYouUse "Check for useless includes" OFF) + mark_as_advanced(IncludeWhatYouUse) + +-set(CMAKE_BUILD_TYPE "Release") + + + set (BuildOptions_x86_64AMD +@@ -321,34 +320,6 @@ if(NOT AVOID_ASM) + add_definitions(-DASM_F2I_YES) + endif() + +-if (BuildForDebug) +- set (CMAKE_BUILD_TYPE "Debug") +- set (CMAKE_CXX_FLAGS_DEBUG ${BuildOptionsDebug}) +- message (STATUS "Building for ${CMAKE_BUILD_TYPE}, flags: ${CMAKE_CXX_FLAGS_DEBUG}") +-else (BuildForDebug) +- set (CMAKE_BUILD_TYPE "Release") +- +- set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsBasic}) +- +- if (BuildForAMD_X86_64) +- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_x86_64AMD}") +- endif (BuildForAMD_X86_64) +- +- if (BuildForCore2_X86_64) +- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_X86_64Core2}") +- endif (BuildForCore2_X86_64) +- +- if (SUPPORT_SSE) +- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_SSE}") +- endif (SUPPORT_SSE) +- +- if (SUPPORT_NEON AND NOT NoNeonPlease) +- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_NEON}") +- endif (SUPPORT_NEON AND NOT NoNeonPlease) +- +- message (STATUS "Building for ${CMAKE_BUILD_TYPE}, flags: ${CMAKE_CXX_FLAGS_RELEASE}") +-endif (BuildForDebug) +- + if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")) + add_definitions(-fPIC) + endif()