LIBRARY_PATH Ignored but -L Works in Development Environment Script?

Maciej (Matchek) Bliziński maciej@opencsw.org
Wed Jun 27 16:36:00 GMT 2012


2012/6/27 Adrien Guillon <aj.guillon@gmail.com>:
> 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



More information about the Gcc-help mailing list