Re: LIBRARY_PATH Ignored but -L Works in Development Environment Script?

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

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux