summaryrefslogtreecommitdiff
path: root/audio/lmms/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-10-28 23:44:08 +0000
committerjoerg <joerg@pkgsrc.org>2013-10-28 23:44:08 +0000
commit2719992b47669e770670f6a826ccbd653a2dc86e (patch)
tree9e43bd4a054045094140a8f98141e7c63a5a2d53 /audio/lmms/patches
parentbcae849187d9882ec0c443cf82ab4e8a604c00fb (diff)
downloadpkgsrc-2719992b47669e770670f6a826ccbd653a2dc86e.tar.gz
Expect the compiler to know when to inline functions used only once.
Diffstat (limited to 'audio/lmms/patches')
-rw-r--r--audio/lmms/patches/patch-plugins_ladspa__effect_calf_CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/lmms/patches/patch-plugins_ladspa__effect_calf_CMakeLists.txt b/audio/lmms/patches/patch-plugins_ladspa__effect_calf_CMakeLists.txt
new file mode 100644
index 00000000000..515f17e549b
--- /dev/null
+++ b/audio/lmms/patches/patch-plugins_ladspa__effect_calf_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD: patch-plugins_ladspa__effect_calf_CMakeLists.txt,v 1.1 2013/10/28 23:44:08 joerg Exp $
+
+--- plugins/ladspa_effect/calf/CMakeLists.txt.orig 2013-10-18 13:39:29.000000000 +0000
++++ plugins/ladspa_effect/calf/CMakeLists.txt
+@@ -3,11 +3,6 @@ ADD_LIBRARY(calf MODULE ${SOURCES})
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src)
+ INSTALL(TARGETS calf LIBRARY DESTINATION ${PLUGIN_DIR}/ladspa)
+ SET_TARGET_PROPERTIES(calf PROPERTIES PREFIX "")
+-SET(INLINE_FLAGS "")
+-IF(NOT LMMS_BUILD_APPLE)
+-SET(INLINE_FLAGS "-finline-functions-called-once")
+-ENDIF(NOT LMMS_BUILD_APPLE)
+-SET_TARGET_PROPERTIES(calf PROPERTIES COMPILE_FLAGS "-O2 -finline-limit=80 -finline-functions ${INLINE_FLAGS}")
+
+ IF(LMMS_BUILD_WIN32)
+ ADD_CUSTOM_COMMAND(TARGET calf POST_BUILD COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/calf.dll)