This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking against libbfd without modify LD_LIBRARY_PATH


On Sunday 04 December 2011 02:51:04 Baojun Wang wrote:
> When I create my own application liked to libbfd (-lbfd), ``ldd myapp''
> shows:
> 
>  $ ldd myapp
>         linux-vdso.so.1 =>  (0x00007fff985ff000)
>         libbfd-2.21.1.so => not found
>         libc.so.6 => /lib64/libc.so.6 (0x00007f26dc31a000)
> 
> I need set LD_LIBRARY_PATH to let ``myapp'' runs normally.

this is a bug in your distro.  you should file a bug with them.

> But for ``objdump'', why it doesn't need to do so?

it has RPATH entries for it:
	readelf -d `which objdump` | grep RPATH
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]