localrepo/media-sound/lmms/files/lmms-9999-plugin-path.patch
2025-07-25 21:28:54 -05:00

27 lines
866 B
Diff

https://bugs.gentoo.org/907285
https://github.com/LMMS/lmms/issues/5884
https://src.fedoraproject.org/rpms/lmms/blob/rawhide/f/lmms-1.2.2_lib_suffix.patch
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -657,6 +657,9 @@ ENDIF()
# use ccache
include(CompileCache)
+# pass LIB_SUFFIX
+add_definitions(-DLIB_SUFFIX="${LIB_SUFFIX}")
+
# make sub-directories
ADD_SUBDIRECTORY(cmake)
ADD_SUBDIRECTORY(src)
--- a/src/core/PluginFactory.cpp
+++ b/src/core/PluginFactory.cpp
@@ -78,7 +78,7 @@ void PluginFactory::setupSearchPaths()
// plugins at "C:/Program Files/LMMS/plugins/"
#ifndef LMMS_BUILD_WIN32
- addRelativeIfExists("../lib/lmms"); // Installed
+ addRelativeIfExists("../lib" LIB_SUFFIX "/lmms"); // Installed
#endif
addRelativeIfExists("plugins"); // Portable
#ifdef PLUGIN_DIR // We may also have received a relative directory via a define