head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.14 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.12 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.10 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.8 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.6 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.4 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.2 pkgsrc-2008Q3-base:1.2; locks; strict; comment @# @; 1.2 date 2008.09.22.23.49.07; author jmcneill; state dead; branches; next 1.1; 1.1 date 2008.09.14.13.41.38; author jmcneill; state Exp; branches; next ; desc @@ 1.2 log @opal-devel -> opal @ text @$NetBSD: patch-plugins_video_common_dyna_cxx,v 1.1 2008/09/14 13:41:38 jmcneill Exp $ --- plugins/video/common/dyna.cxx.orig 2008-07-28 17:01:45.000000000 -0400 +++ plugins/video/common/dyna.cxx 2008-09-13 17:27:40.000000000 -0400 @@@@ -136,6 +136,12 @@@@ return true; #else void * p = dlsym(_hDLL, (const char *)name); +# ifdef __NetBSD__ + if (p == NULL) { + (void)dlerror(); /* clear error */ + p = dlsym(RTLD_NEXT, (const char *)name); + } +# endif /* __NetBSD__ */ if (p == NULL) return false; func = (Function &)p; @ 1.1 log @* Fix libavcodec library name detection, so we don't later try to dlopen("-lavcodec.51"). * Disable h263ffmpeg plugin as ekiga doesn't use it * Pass LDFLAGS to plugins at linking time, so they get RPATH * Use RTLD_NEXT on NetBSD in an attempt to find symbols in NEEDED libraries of the one we actually loaded (libavcodec). @ text @d1 1 a1 1 $NetBSD$ @