Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2010 12:20:36 -0800
From:      Charlie Kester <corky1951@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Any generic way to fix problem that configure doesn't find libraries in /usr/local/lib?
Message-ID:  <20100224202036.GE191@comcast.net>
In-Reply-To: <4B858676.7040701@rawbw.com>
References:  <4B858676.7040701@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed 24 Feb 2010 at 12:05:10 PST Yuri wrote:
>Every time I run configure script it fails to find libraries in 
>/usr/local/lib because it has some hard-coded paths not including 
>/usr/local/lib and /usr/local/lib.
>Every time I need to edit configure to fix it up.
>
>Is there any generic tool or way that fixes this problem more easily?

With most configure scripts I've seen, "./configure --help" tells me
that the environment variable LDFLAGS is respected.

So why not set that before invoking configure?

If you look, you'll find that the Makefiles for many ports do exactly
this, by setting CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100224202036.GE191>