openbsd-ports/x11/vlc/patches/patch-src_misc_modules_c
kurt ab90b0adcc dlopen libstdc++ with lazy|global so other objects can see it and
to hide some missing _Unwind_* syms that appear to be unneeded for
this hack.
2005-11-07 13:41:27 +00:00

17 lines
729 B
Plaintext

$OpenBSD: patch-src_misc_modules_c,v 1.2 2005/11/07 13:41:27 kurt Exp $
--- src/misc/modules.c.orig Sat Jun 25 09:43:02 2005
+++ src/misc/modules.c Sun Nov 6 18:19:59 2005
@@ -1399,10 +1399,8 @@ static int LoadModule( vlc_object_t *p_t
/* Update: FYI, this is Debian bug #180505, and seems to be fixed. */
if( !b_kde && !strstr( psz_file, "kde" ) )
{
- dlopen( "libstdc++.so.6", RTLD_NOW )
- || dlopen( "libstdc++.so.5", RTLD_NOW )
- || dlopen( "libstdc++.so.4", RTLD_NOW )
- || dlopen( "libstdc++.so.3", RTLD_NOW );
+ /* lazy because libstdc++ expects exe to declare _Unwind_* syms */
+ dlopen( "libstdc++.so", RTLD_LAZY | RTLD_GLOBAL );
b_kde = VLC_TRUE;
}