delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/05/08:27:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Wed, 5 Feb 2003 14:34:37 +0100 (CET)
From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
X-X-Sender: ronald AT localhost DOT localdomain
To: Isaque Galdino <isaque AT uol DOT com DOT br>
cc: cygwin AT cygwin DOT com
Subject: Re: /usr/local/lib on library path
In-Reply-To: <H9U6UT$IflHkWv_VGt7GLN1rC1AcKz2AXefsaz@uol.com.br>
Message-ID: <Pine.LNX.4.44.0302051432480.1486-100000@localhost.localdomain>
MIME-Version: 1.0

From the gcc info (`info gcc`), chapter "Environment variables":
`LIBRARY_PATH'
     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).

Ciao!

rlc

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
> http://www.uol.com.br/
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019