Re: LD_RUN_PATH not adding paths when building with shared libs

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

 



Bill Moseley <moseley@xxxxxxxx> wrote:
> So, it seems like the LD_RUN_PATH path is not used when building our
> project unless we use --disable-shared:

I'm not especially familiar with libtool, but IME, LD_RUN_PATH is
ignored if any run-time search directories are given on the command
line.  So if the command that links your binary has any -Wl,-R,
options (or whatever they look like on your platform), that may be the
problem.

> (By the way, I'm sure I used to know a better way to show the search
> path for a binary than using strings!)

At least with GNU binutils: objdump -p | grep RPATH


paul



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux