blob: 0d04bf8d30273e73e32976c92236409f58df04b4 (
plain)
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
|
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
|