From owner-freebsd-arch Wed May 29 12:52: 8 2002 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id C418B37B408; Wed, 29 May 2002 12:51:29 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g4TJpRJn002347; Wed, 29 May 2002 12:51:27 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g4TJpMTA002346; Wed, 29 May 2002 12:51:22 -0700 (PDT) Date: Wed, 29 May 2002 12:51:22 -0700 From: "David O'Brien" To: Terry Lambert Cc: Antoine Beaupre , "Greg 'groggy' Lehey" , 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> Reply-To: FreeBSD-arch@FreeBSD.org References: <26911A2E-7243-11D6-93A2-0050E4A0BB3F@anarcat.ath.cx> <3CF3DAFB.7C9C5108@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3CF3DAFB.7C9C5108@mindspring.com>; from tlambert2@mindspring.com on Tue, May 28, 2002 at 12:31:07PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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