This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: g++, RH 2.1 and rpath


On Jul  2, 2003, "Ajay Bansal" <Ajay_Bansal@infosys.com> wrote:

> If I use rpath, do I still need to use -L for specifying library search
> paths? 

-rpath encodes directories in the run-time search path of an
executable, that the dynamic linker (ld.so) uses to find shared
libraries.  -L tells the linker (ld) where to look for libraries
specified in the command line, at link time.  -rpath-link tells the
linker (ld) where to look for dynamic libraries that are mentioned as
dependencies of other dynamic libraries that are linked.  IIRC, -rpath
is the default for -rpath-link, but definitely not for -L.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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