Re: [LIP] Re: [PLUG] Linking custom ld-linux.so.2 for a shared library.
"Amod Malviya" <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
RTFM. there is a -L option which you use to specify the location of libs. The user specified directories are searched before the default ones. ----- Original Message ----- From: Swapnil Nagle <[email protected]> Date: Sat, 12 Jun 2004 15:52:45 +0530 To: Pune GNU/Linux Users Group Mailing List <[email protected]> Subject: [LIP] Re: [PLUG] Linking custom ld-linux.so.2 for a shared library. > > > I am trying to create a shared library, in which I > > want to link a custom ld-linux.so.2 rather than > > picking from /lib, the default location. > > > ... > > > The library gets created, but it links to local > > ld-linux.so.2. Verified by, > > > > $ ldd libab.so > > libc.so.6 => /new/lib/libc.so.6 (0x40009000) > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > > > Maybe libc has a dependency on /lib/ld-linux.so. > Another approach can be by using LD_PRELOAD. > > Regards, > Swapni. > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the > one installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > linux-india-programmers mailing list > linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/linux-india-programmers -- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504