91ef61b1ea2652aa90301dc485f3f1d9f5855401
[openwrt.git] / toolchain / eglibc / patches / 2.14 / 200-add-dl-search-paths.patch
1 add /usr/lib to default search path for the dynamic linker
2
3 diff --git a/libc/Makeconfig b/libc/Makeconfig
4 index 1a9ad87..2d4d3f7 100644
5 --- a/libc/Makeconfig
6 +++ b/libc/Makeconfig
7 @@ -479,6 +479,9 @@ else
8  default-rpath = $(libdir)
9  endif
10  
11 +# Add /usr/lib to default search path for the dynamic linker
12 +user-defined-trusted-dirs := /usr/lib
13 +
14  ifndef link-extra-libs
15  link-extra-libs = $(LDLIBS-$(@F))
16  link-extra-libs-static = $(link-extra-libs)