/usr/local/lib missing in gcc LIBRARY_PATH

Reini Urban rurban@x-ray.at
Fri Apr 30 06:46:00 GMT 2010


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



More information about the Cygwin mailing list