linking against libbfd without modify LD_LIBRARY_PATH
Baojun Wang
wangbj@gmail.com
Tue Dec 6 01:10:00 GMT 2011
More information about the Binutils mailing list
Tue Dec 6 01:10:00 GMT 2011
- Previous message (by thread): linking against libbfd without modify LD_LIBRARY_PATH
- Next message (by thread): gold and --with-lib-path does not work
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Dec 5, 2011 at 11:32 PM, Mike Frysinger <vapier@gentoo.org> wrote: > On Monday 05 December 2011 08:05:36 Baojun Wang wrote: >> Many thanks for your help Mike. >> The distro is gentoo (~amd64, up-to-dated) ;) >> >> RPATH is /usr/lib64/binutils/x86_64-pc-linux-gnu/2.22 > > binutils-config in Gentoo takes care of setting up an ldpath that is full of > links to all the binutils libraries. seems to be working for me: > $ cat /etc/ld.so.conf.d/05binutils.conf > /usr/x86_64-pc-linux-gnu/lib > $ echo 'main(){}' > test.c > $ gcc test.c -lbfd > $ ldd a.out | grep bfd > libbfd-2.22.so => /usr/x86_64-pc-linux-gnu/lib/libbfd-2.22.so > (0x00007f92d450c000) > >> The problem is there is no such tool like pkg-config which can output >> the lib path automatically, IE: >> >> pkg-config --cflags --libs glib-2.0 >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lglib-2.0 > > the binutils project doesn't provide .pc files, so i'm not going to generate > one for Gentoo as it'd encourage forking > > also, please don't top post Sorry about that. > -mike I think the problem is because I upgraded binutils, but didn't run ``env-update'' after that, after I run env-update, there is no such issue any more. Many thanks for your prompt reply, Mike. Best Regards Baojun
- Previous message (by thread): linking against libbfd without modify LD_LIBRARY_PATH
- Next message (by thread): gold and --with-lib-path does not work
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list