Date: Wed, 29 May 2002 12:51:22 -0700 From: "David O'Brien" <dev-null@NUXI.com> To: Terry Lambert <tlambert2@mindspring.com> Cc: Antoine Beaupre <anarcat@anarcat.ath.cx>, "Greg 'groggy' Lehey" <grog@FreeBSD.org>, FreeBSD-arch@FreeBSD.org Subject: Re: Why don't we search /usr/local/lib and /usr/local/include by default? Message-ID: <20020529125122.B2156@dragon.nuxi.com> In-Reply-To: <3CF3DAFB.7C9C5108@mindspring.com>; from tlambert2@mindspring.com on Tue, May 28, 2002 at 12:31:07PM -0700 References: <26911A2E-7243-11D6-93A2-0050E4A0BB3F@anarcat.ath.cx> <3CF3DAFB.7C9C5108@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 28, 2002 at 12:31:07PM -0700, Terry Lambert wrote: > Antoine Beaupre wrote: > > We could still make the ports system try to use libraries in > > /usr/local/lib too by default since most third party apps have > > dependencies on other third-party apps. > > > > The way I usually do it is: > > > > CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ > > LDFLAGS="-L${LOCALBASE}/lib" \ > > CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \ > > CXXFLAGS="-I${LOCALBASE}/include ${CXXFLAGS}" > > > > or something like that. I think a lot of ports have something like that > > in there somewhere. > > > The resulting binaries still do not work, unless LD_LIBRARY_PATH > is set, or there is an intervening run of "ldconfig". They fail > to find shared libraries at runtime, installed after boot but > before link (the libraries are found at link time, just not at > runtime). Terry, the Ports Collection *does* do `ldconfig' after installing shared libs. We also do have the assumption that "ldconfig_paths" in /etc/rc.conf is set to match PREFIX. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529125122.B2156>