From f228b7b7530213480ed44ee56aa33b13fcccfc12 Mon Sep 17 00:00:00 2001 From: Steve Prybylski Date: Wed, 21 Oct 2015 19:08:15 -0400 Subject: [PATCH] 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. --- srcpkgs/audacity/patches/fix-musl.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/audacity/patches/fix-musl.patch diff --git a/srcpkgs/audacity/patches/fix-musl.patch b/srcpkgs/audacity/patches/fix-musl.patch new file mode 100644 index 00000000000..b078de3d341 --- /dev/null +++ b/srcpkgs/audacity/patches/fix-musl.patch @@ -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) + {