summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch')
-rw-r--r--meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch b/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch
new file mode 100644
index 0000000000..5ed4f6ff69
--- /dev/null
+++ b/meta/recipes-core/glibc/ldconfig-native-2.12.1/ldconfig-default-to-all-multilib-dirs.patch
@@ -0,0 +1,37 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3make ldconfig default to both /lib+/usr/lib, /lib32+/usr/lib32 and
4/lib64+/usr/lib64 on bi-ABI architectures.
5
6---
7 ldconfig.c | 10 ++++++++++
8 1 file changed, 10 insertions(+)
9
10diff -urpN a/ldconfig.c b/ldconfig.c
11--- a/ldconfig.c
12+++ b/ldconfig.c
13@@ -52,7 +52,11 @@
14
15 #define SYSCONFDIR "/etc"
16 #define LIBDIR "/usr/lib"
17+#define LIBDIR32 "/usr/lib32"
18+#define LIBDIR64 "/usr/lib64"
19 #define SLIBDIR "/lib"
20+#define SLIBDIR32 "/lib32"
21+#define SLIBDIR64 "/lib64"
22 # define N_(msgid) msgid
23 #define _(msg) msg
24
25@@ -1373,6 +1377,12 @@ main (int argc, char **argv)
26 add_system_dir (SLIBDIR);
27 if (strcmp (SLIBDIR, LIBDIR))
28 add_system_dir (LIBDIR);
29+ add_system_dir (SLIBDIR32);
30+ if (strcmp (SLIBDIR32, LIBDIR32))
31+ add_system_dir (LIBDIR32);
32+ add_system_dir (SLIBDIR64);
33+ if (strcmp (SLIBDIR64, LIBDIR64))
34+ add_system_dir (LIBDIR64);
35 }
36
37 const char *aux_cache_file = _PATH_LDCONFIG_AUX_CACHE;