]> git.saurik.com Git - wxWidgets.git/commitdiff
Added RTLD_GLOBAL to dlopen() flags which is needed if libraries depend
authorKarsten Ballüder <ballueder@usa.net>
Thu, 8 Jun 2000 20:11:51 +0000 (20:11 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Thu, 8 Jun 2000 20:11:51 +0000 (20:11 +0000)
on each other.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynlib.cpp

index f75c99e93fb6118653ffdaba0234b004eb6cd92b..a156ad59311f971a30a780329b4098044a0618b5 100644 (file)
@@ -48,7 +48,7 @@
 #  define wxDllGetSymbol(handle, modaddr)   DosQueryProcAddr(handle, 1L, NULL, (PFN*)modaddr)
 #  define wxDllClose(handle)                DosFreeModule(handle)
 #elif defined(HAVE_DLOPEN)
-#   define wxDllOpen(lib)                dlopen(lib.fn_str(), RTLD_NOW/*RTLD_LAZY*/)
+#   define wxDllOpen(lib)                dlopen(lib.fn_str(), RTLD_NOW|RTLD_GLOBAL/*RTLD_LAZY*/)
 #   define wxDllGetSymbol(handle, name)  dlsym(handle, name.mb_str())
 #   define wxDllClose                    dlclose
 #elif defined(HAVE_SHL_LOAD)