diff options
author | Alexey Neyman <stilor@att.net> | 2017-03-14 23:24:14 -0700 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 19:20:40 +0100 |
commit | 2e4d3492e6627fc9d4c34de104a6ebe6f84ac1e9 (patch) | |
tree | 017b5ed2630fd668a4813388c84f75bef95130db /ldso/ldso/Makefile.in | |
parent | 6458e8278c9317f8254eeca9aaf86ce60f3a257b (diff) |
Search the configured multilib
... before falling back to ld.so installation path (it is not the same -
gcc uses /lib/ld-uClibc-x86-64.so.0 for uClibc) or default /lib:/usr/lib.
This matches glibc behavior (see trusted-dirs.h generated during glibc
build).
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'ldso/ldso/Makefile.in')
-rw-r--r-- | ldso/ldso/Makefile.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in index 993aeb9d9..320e4488b 100644 --- a/ldso/ldso/Makefile.in +++ b/ldso/ldso/Makefile.in @@ -34,6 +34,11 @@ CFLAGS-$(DODEBUG)-ldso/ldso := -O2 -g CFLAGS-ldso.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\" +# Search non-default multilib directories +ifneq ($(MULTILIB_DIR),lib) +CFLAGS-ldso.c += -DLDSO_MULTILIB_DIR=\"$(MULTILIB_DIR)\" +endif + ifeq ($(TARGET_ARCH),arc) CFLAGS-ldso.c += -mno-long-calls endif |