From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 15:42:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A6D37B401 for ; Tue, 8 Jul 2003 15:42:26 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F22C843FB1 for ; Tue, 8 Jul 2003 15:42:25 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h68MgPEJ039214; Tue, 8 Jul 2003 17:42:25 -0500 (CDT) (envelope-from dan) Date: Tue, 8 Jul 2003 17:42:25 -0500 From: Dan Nelson To: Kent Hauser Message-ID: <20030708224225.GQ87950@dan.emsphone.com> References: <200307081232.20249.kent.hauser@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200307081232.20249.kent.hauser@verizon.net> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: (g)cc and /usr/local X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 22:42:26 -0000 In the last episode (Jul 08), Kent Hauser said: > Why doesn't gcc look in /usr/local/{include,lib} on FreeBSD? It > always did on my sun box. Installing in "/usr/local" is standard on > CSRG systems -- why is looking non-standard on FreeBSD? Because when you installed gcc on Solaris, it probably installed into /usr/local/bin, which means it'll search /usr/local/include for headers. gcc on FreeBSD is the default compiler, is installed in /usr/bin, and does not search /usr/local/include. I bet if you were to run Solaris' default cc, it wouldn't search /usr/local/include either. -- Dan Nelson dnelson@allantgroup.com