From owner-freebsd-arch Tue May 28 18: 4:44 2002 Delivered-To: freebsd-arch@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id BF86B37B405; Tue, 28 May 2002 18:04:35 -0700 (PDT) Received: from pool0456.cvx40-bradley.dialup.earthlink.net ([216.244.43.201] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 17CrtC-0001cP-00; Tue, 28 May 2002 18:04:34 -0700 Message-ID: <3CF42902.70A697C8@mindspring.com> Date: Tue, 28 May 2002 18:04:02 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Greg 'groggy' Lehey Cc: freebsd-arch@FreeBSD.org Subject: Re: Why don't we search /usr/local/lib and /usr/local/include by default? References: <20020528143444.R16567@wantadilla.lemis.com> <20020528084248.B59588@dragon.nuxi.com> <20020529093009.C31668@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Greg 'groggy' Lehey wrote: > > The system GCC searching any part of /usr/local is a bug. It is not > > [ports] PREFIX clean. > > So how would you recommend we solve the issue? I hesitate to mention this. But there are two obvious ways: 1) Add the expectation paths for things to the default, and if someone puts the libraries or headers in a non-default place, it's their responsibility. This would also require changing the ldconfig cache to be "hints", rather than "the only path". 2) Make the compiler use the ldconfig cache path prefixes; then everything would "just work". #2 is harder. I also don't think it's what you really want. The Linux people who are complaining are probably also complaining about including one include file not including all include files, and the lack of a /usr/include/linux/. PS: I put number 2 last on purpose because I really don't like it. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message