summaryrefslogtreecommitdiff
path: root/multimedia/intel-media-sdk/files/patch-rtld
blob: 45df78a714abca0dd76b438cdd4c4a5ffbeaa6b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RTLD_DEEPBIND isn't available on non-Linux.

tools/tracer/tracer/tracer_linux.cpp:82:65: error: use of undeclared identifier 'RTLD_DEEPBIND'
        loader->dlhandle = dlopen(g_mfxlib, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND);
                                                                ^
tools/tracer/tracer/tracer_linux.cpp:84:76: error: use of undeclared identifier 'RTLD_DEEPBIND'
            loader->dlhandle = dlopen(g_mfxlib_in_dir, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND);
                                                                           ^
tools/tracer/tracer/tracer_linux.cpp:188:65: error: use of undeclared identifier 'RTLD_DEEPBIND'
        loader->dlhandle = dlopen(g_mfxlib, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND);
                                                                ^
tools/tracer/tracer/tracer_linux.cpp:190:76: error: use of undeclared identifier 'RTLD_DEEPBIND'
            loader->dlhandle = dlopen(g_mfxlib_in_dir, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND);
                                                                           ^

--- tools/tracer/tracer/tracer_linux.cpp.orig	2020-07-02 17:50:48 UTC
+++ tools/tracer/tracer/tracer_linux.cpp
@@ -40,6 +40,10 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
     #error Unsupported architecture
 #endif
 
+#if !defined(RTLD_DEEPBIND)
+    #define RTLD_DEEPBIND 0
+#endif
+
 static const char* g_mfxlib;
 static const char* g_mfxlib_in_dir;