From a1ce590fb13ce34a3051f619f0d9cdbc1d2dffa5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 21 Oct 2014 09:59:32 +0200 Subject: standardize dlopen(3) flags used --- opentrack/plugin-support.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/opentrack/plugin-support.cpp b/opentrack/plugin-support.cpp index 7fc787b6..ec56b1e1 100644 --- a/opentrack/plugin-support.cpp +++ b/opentrack/plugin-support.cpp @@ -159,12 +159,10 @@ dylib::dylib(const QString& filename, Type t) : #else QByteArray latin1 = QFile::encodeName(filename); handle = dlopen(latin1.constData(), RTLD_NOW | -# ifdef __linux - RTLD_DEEPBIND|RTLD_LOCAL|RTLD_NOW -# elif defined(__APPLE__) +# if defined(__APPLE__) RTLD_LOCAL|RTLD_FIRST|RTLD_NOW # else - 0 + RTLD_NOW|RTLD_GLOBAL|RTLD_NODELETE # endif ); -- cgit v1.2.3