Import of pkgsrc-2015Q2

This commit is contained in:
2015-08-30 02:56:09 -07:00
committed by Lionel Sambuc
parent 4af1cdf7a9
commit f641581404
15409 changed files with 267784 additions and 121624 deletions

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-src_effects_VST_VSTEffect.cpp,v 1.1 2015/04/20 13:38:23 rodent Exp $
Some platforms don't have RTLD_DEEPBIND.
--- src/effects/VST/VSTEffect.cpp.orig 2015-03-02 01:06:58.000000000 +0000
+++ src/effects/VST/VSTEffect.cpp
@@ -2609,7 +2609,11 @@ bool VSTEffect::Load()
// symbols.
//
// Once we define a proper external API, the flags can be removed.
+# if defined(RTLD_DEEPBIND)
void *lib = dlopen((const char *)wxString(realPath).ToUTF8(), RTLD_NOW | RTLD_LOCAL | RTLD_DEEPBIND);
+# else
+ void *lib = dlopen((const char *)wxString(realPath).ToUTF8(), RTLD_NOW | RTLD_LOCAL);
+# endif
if (!lib)
{
return false;