| 1 | widevine is linked against glibc and needs gcompat to work. Load the
|
| 2 | libraries before the sandbox is started.
|
| 3 |
|
| 4 | |
| 5 | |
| 6 | @@ -208,6 +208,10 @@
|
| 7 | "libdl.so.2",
|
| 8 | "libpthread.so.0",
|
| 9 | "librt.so.1",
|
| 10 | + "libgcompat.so.0",
|
| 11 | + "ld-linux-x86-64.so.2",
|
| 12 | + "ld-linux-aarch64.so.1",
|
| 13 | + "ld-linux.so.2",
|
| 14 | };
|
| 15 |
|
| 16 | nsTArray<nsCString> libs;
|
| 17 | |
| 18 | |
| 19 | @@ -1206,6 +1206,16 @@
|
| 20 | // psapi.dll added for GetMappedFileNameW, which could possibly be avoided
|
| 21 | // in future versions, see bug 1383611 for details.
|
| 22 | mLibs = "dxva2.dll, ole32.dll, psapi.dll, shell32.dll, winmm.dll"_ns;
|
| 23 | +#elif XP_LINUX
|
| 24 | + mLibs = "libgcompat.so.0"_ns
|
| 25 | +#if defined(__x86_64__)
|
| 26 | + ", ld-linux-x86-64.so.2"_ns
|
| 27 | +#elif defined(__aarch64__)
|
| 28 | + ", ld-linux-aarch64.so.1"_ns
|
| 29 | +#elif defined(__i386__)
|
| 30 | + ", ld-linux.so.2"_ns
|
| 31 | +#endif
|
| 32 | + ;
|
| 33 | #endif
|
| 34 | break;
|
| 35 | #ifdef MOZ_WMF_CDM
|