From owner-freebsd-questions@FreeBSD.ORG Wed Feb 24 20:20:40 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DBCB1065672 for ; Wed, 24 Feb 2010 20:20:40 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id 190D98FC24 for ; Wed, 24 Feb 2010 20:20:39 +0000 (UTC) Received: from omta18.westchester.pa.mail.comcast.net ([76.96.62.90]) by qmta03.westchester.pa.mail.comcast.net with comcast id lpMe1d0031wpRvQ53wKjBe; Wed, 24 Feb 2010 20:19:43 +0000 Received: from comcast.net ([98.203.142.76]) by omta18.westchester.pa.mail.comcast.net with comcast id lwNK1d0061f6R9u3ewNLJK; Wed, 24 Feb 2010 20:22:21 +0000 Received: by comcast.net (sSMTP sendmail emulation); Wed, 24 Feb 2010 12:20:36 -0800 Date: Wed, 24 Feb 2010 12:20:36 -0800 From: Charlie Kester To: freebsd-questions@freebsd.org Message-ID: <20100224202036.GE191@comcast.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <4B858676.7040701@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4B858676.7040701@rawbw.com> X-Mailer: Mutt 1.5.20 X-Composer: VIM 7.2 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: Any generic way to fix problem that configure doesn't find libraries in /usr/local/lib? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 20:20:40 -0000 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}"