This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: marking executables with LD_LIBRARY_PATH
- To: Ian Lance Taylor <ian at zembu dot com>
- Subject: Re: marking executables with LD_LIBRARY_PATH
- From: "Marty Leisner" <mleisner at eng dot mc dot xerox dot com>
- Date: Tue, 23 Jan 2001 17:00:11 -0500
- cc: "Marty Leisner" <mleisner at eng dot mc dot xerox dot com>, binutils at sources dot redhat dot com, mleisner at eng dot mc dot xerox dot com
In message <sik87m0xvp.fsf@daffy.airs.com>, you write:
>> The choice to "relink" the objects is bad...(when they're not there).
>> I tried "relinking" the executable, it doesn't seem to do anything useful
>> (although its not making a carbon copy of the input -- but its the same size
> and
>> also runs with the right LD_LIBRARY_PATH).
>
>I'm not sure what you mean here. Did you relink with a different
>--rpath option?
>
Yeah (its -rpath in ld).
If I don't have the objects "handy", its a pain to rebuild
the application.
I did something like:
1 :mleisner@valisk; ld -o gs.new2 gs-test --rpath ~/marty/lib/
That's really all I wanted to do...(I tried -rpath and --rpath).
Seems to me it should be reasonable for the linker to read in an
executable and write out an executable (or some other simple program).
marty