From owner-freebsd-arch Mon May 27 22:15:41 2002 Delivered-To: freebsd-arch@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 6AEDE37B403; Mon, 27 May 2002 22:15:38 -0700 (PDT) Received: from pool0419.cvx22-bradley.dialup.earthlink.net ([209.179.199.164] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 17CZKb-0007Hw-00; Mon, 27 May 2002 22:15:37 -0700 Message-ID: <3CF3124D.8E98E9C@mindspring.com> Date: Mon, 27 May 2002 22:14:53 -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> 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: > I've just had a question from some friends in the Linux space about > why we install additional libraries in /usr/local/lib and their header > files in /usr/local/include, but gcc by default only searches > /usr/local/libexec and /usr/local/lib for libraries and /usr/include > for header files. They think that this is inconsistent, and I tend to > agree. What speaks against adding the /usr/local directories to the > specs files for gcc? The fact that ldconfig is assinine, and prevents loading the shared libraries at runtime, even if they are found at link time, for one, because ld.so doesn't fall back to searching known directories, if it fails to find libraries in cache, unless you set LD_LIBRARY_PATH explicitly. Or in shorting terms: "Doing that doesn't actually work". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message