From: Jouk Jansen Date: Fri, 2 Feb 2001 13:22:14 +0000 (+0000) Subject: Committing in . X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/343a06a58b3c18ed076371778baacb9f36006ac9?ds=inline Committing in . Modified Files: wxWindows/src/common/dynlib.cpp RTLD_GLOBAL is not allowed in the second argument of dlopen on True64-Unix. ---------------------------------------------------------------------- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 39c53cd2ee..5976df793d 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -53,9 +53,12 @@ // note about dlopen() flags: we use RTLD_NOW to have more Windows-like // behaviour (Win won't let you load a library with missing symbols) and // RTLD_GLOBAL because it is needed sometimes and probably doesn't hurt - // otherwise. On VMS the second argument on dlopen is ignored. + // otherwise. On True64-Unix RTLD_GLOBAL is not allowed and on VMS the + // second argument on dlopen is ignored. #ifdef __VMS # define wxDllOpen(lib) dlopen(lib.fn_str(), 0 ) +#elif defined( __osf__ ) +# define wxDllOpen(lib) dlopen(lib.fn_str(), RTLD_LAZY ) #else # define wxDllOpen(lib) dlopen(lib.fn_str(), RTLD_LAZY | RTLD_GLOBAL) #endif