- To: Adrien Guillon <aj.guillon@xxxxxxxxx>
- Subject: Re: LIBRARY_PATH Ignored but -L Works in Development Environment Script?
- From: Maciej (Matchek) Bliziński <maciej@xxxxxxxxxxx>
- Date: Wed, 27 Jun 2012 17:35:21 +0100
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <CAKMAvEx89-6W4q=+b2SdGkUmSqvv+JwjBQ4D+6=p3DFzqbtDGA@mail.gmail.com>
2012/6/27 Adrien Guillon <aj.guillon@xxxxxxxxx>:
> Since I have installed other libraries into this environment, I need
> to tell gcc where to find them.
One way is to add this to LDFLAGS (or to the linker invocation):
-Wl,-rpath -Wl,<path-with-the-libs>
Coincidentally, I wrote a longer post about this earlier today:
http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable/402590#402590
Maciej
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]