void-packages/srcpkgs/audacity/patches/fix-musl.patch
Steve Prybylski f228b7b753 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.
2015-10-21 22:06:34 -04:00

14 lines
453 B
Diff

--- ./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)
{