ld.so.cache: Fix order of extension libs

We include the app extension ld.so.conf files before the app
and after that the runtime extension conf files.

This matches what is described in https://github.com/flatpak/flatpak/issues/1075

Closes: #1076
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson
2017-10-04 13:07:58 +02:00
committed by Atomic Bot
parent aa28d9c7b4
commit eaa780ea63

View File

@@ -4935,9 +4935,10 @@ add_ld_so_conf (GPtrArray *argv_array,
GError **error)
{
const char *contents =
"include /run/flatpak/ld.so.conf.d/*.conf\n"
"include /run/flatpak/ld.so.conf.d/app-*.conf\n"
"include /app/etc/ld.so.conf\n"
"/app/lib\n";
"/app/lib\n"
"include /run/flatpak/ld.so.conf.d/runtime-*.conf\n";
return add_args_data (argv_array, fd_array,
contents, -1, "/etc/ld.so.conf", error);