system inc and dynamic linker change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

  I'd like to compile a gcc that uses:
- /opt23/usr/include instead of /usr/include
  (and similar for other system include dirs)

- instructs linker to use /opt23/lib/ld-linux.so.2 instead of
  /lib/ld-linux.so.2
  (Maybe this is a binutils issue, but it seems like binutils gets its
  deafults from gcc when compiling binutils)

The idea is to be able to compile programs for another glibc, but I'm not root, so I won't be able to use it in it's normal location. So /lib/ld-linux.so.2 won't point to the new one. I tried to create a cross compile toolchain but was unsuccessfull so far.

Is there a way to change the dynamic linker of an existing application ?
From /lib/ld-linux.so.2 to /opt23/lib/ld-linux.so.2 ?

bye, krajo


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux