This is the mail archive of the
cygwin
mailing list for the Cygwin project.
/usr/local/lib missing in gcc LIBRARY_PATH
- From: Reini Urban <rurban at x-ray dot at>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Fri, 30 Apr 2010 08:42:15 +0200
- Subject: /usr/local/lib missing in gcc LIBRARY_PATH
I'm a bit baffled that /usr/local/lib is not in the LIBRARY_PATH - the
ld library search path,
but /usr/local/include is in the header search path.
For gcc-3 and -4
On linux and default gcc /usr/local/lib is even before /usr/lib, but
certainly not removed at all.
See e.g. http://www.network-theory.co.uk/docs/gccintro/gccintro_23.html
I can only vaguely remember that this used to work before.
So the local headers are picked up, but the linker fails to find the
-l<libname>.
I have to use
export LIBRARY_PATH=/usr/local/lib
./configure
make
to be able to use local libs.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple