I use ubuntu 14.10 and crosstool-ng-1.20.0 to create toolchain from host: x86_64 to target: i686, I know glibc will create ld.so but i don't know how to change the default path in ld.so from "/lib, /usr/lib" to "/lib32, /usr/lib32".
I want to change the the default path from "/lib, /usr/lib" to my setting "/lib32, /usr/lib32" in ld.so on my target machine. (because I put every .so file in /lib32 for 32 bit library, and will put other .so file to /lib for x86_64 not i686)
I don't want to add someflag(like "-z nodeflib", "--rpath=dir") on host in compile time to change every binary's search path on target machine. I want every binary without using theses flags can use ld.so to find the correct library
Does anyone know how to do this?
ps. I use crosstool-ng to make gcc-4.9 linaro, glibc-2.20 linaro, binutl ...etc...