zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 87b668ffe4cf3cc615a095c98f40c59093bf0675
parent 9c9edf945a87442d01125029c4d2119bb7b51bec
Author: Robin Gareus <[email protected]>
Date:   Thu,  4 Jan 2018 15:48:17 +0100

OSX/MacOS: search libzest relative to plugin

Diffstat:
Msrc/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp b/src/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp @@ -60,6 +60,9 @@ public: handle = LoadLibrary("./libzest.dll"); if(!handle) handle = LoadLibrary("libzest.dll"); +#elif defined __APPLE__ + if(!handle) + handle = dlopen("@loader_path/libzest.dylib", RTLD_LAZY); #else handle = dlopen("./libzest.so", RTLD_LAZY); if(!handle)