This is the mail archive of the mailing list for the Cygwin 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: /usr/local/lib on library path

>From the gcc info (`info gcc`), chapter "Environment variables":
     The value of `LIBRARY_PATH' is a colon-separated list of
     directories, much like `PATH'.  When configured as a native
     compiler, GCC tries the directories thus specified when searching
     for special linker files, if it can't find them using
     `GCC_EXEC_PREFIX'.  Linking using GCC also uses these directories
     when searching for ordinary libraries for the `-l' option (but
     directories specified with `-L' come first).

I think this is what you need - if not, try being more specific (or read 
the other answers you'll probably get).



On Wed, 5 Feb 2003, Isaque Galdino wrote:
> Hi guys,
> I've installed the last cygwin version and it doesn't have 
> the /usr/local/lib directory in my default search library 
> path, as you can see in gcc -v:
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
> Configured with: /netrel/src/gcc-3.2-3/configure --enable-
> languages=c,c++,f77,java --enable-libgcj --enable-
> threads=posix --with-system-zlib --enable-nls --without-
> included-gettext --enable-interpreter --disable-sjlj-
> exceptions --disable-version-specific-runtime-libs --enable-
> shared --build=i686-pc-linux --host=i686-pc-cygwin --
> target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-
> prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --
> includedir=/nonexistent/include --libexecdir=/usr/sbin
> Thread model: posix
> gcc version 3.2 20020927 (prerelease)
> So, my question is, how can I include /usr/local/lib in my 
> library search path, by default?
> Thank you.
> Isaque Galdino
> "Free as a penguim" - maybe The Beatles were trying to 
> say that! :)
> ---
> UOL, o melhor da Internet
> --
> Unsubscribe info:
> Bug reporting:
> Documentation:
> FAQ:         

Unsubscribe info:
Bug reporting:

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