audacity: fix musl.

The use of RTLD_DEEPBIND is just a workaround, not a real fix. When
Audacity defines a proper external API, this patch can be removed.
This commit is contained in:
Steve Prybylski 2015-10-21 19:08:15 -04:00
parent 50e90b3557
commit f228b7b753
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- ./src/effects/VST/VSTEffect.cpp.orig 2015-10-21 14:25:52.942716426 -0400
+++ ./src/effects/VST/VSTEffect.cpp 2015-10-21 14:28:45.521711160 -0400
@@ -2576,6 +2576,11 @@
// symbols.
//
// Once we define a proper external API, the flags can be removed.
+
+#ifndef RTLD_DEEPBIND
+#define RTLD_DEEPBIND 0
+#endif
+
void *lib = dlopen((const char *)wxString(realPath).ToUTF8(), RTLD_NOW | RTLD_LOCAL | RTLD_DEEPBIND);
if (!lib)
{