From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 15:49:19 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 39EFB37B401 for ; Tue, 8 Jul 2003 15:49:19 -0700 (PDT) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5589543FAF for ; Tue, 8 Jul 2003 15:49:18 -0700 (PDT) (envelope-from kent.hauser@verizon.net) Received: from hnllhi1-ar3-4-3-106-070.hnllhi1.dsl-verizon.net ([4.3.106.70]) by out004.verizon.netESMTP <20030708224917.BQUC14849.out004.verizon.net@hnllhi1-ar3-4-3-106-070.hnllhi1.dsl-verizon.net> for ; Tue, 8 Jul 2003 17:49:17 -0500 From: Kent Hauser To: questions@freebsd.org Date: Tue, 8 Jul 2003 12:49:16 -1000 User-Agent: KMail/1.5.2 References: <200307081232.20249.kent.hauser@verizon.net> <20030708224225.GQ87950@dan.emsphone.com> In-Reply-To: <20030708224225.GQ87950@dan.emsphone.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200307081249.16424.kent.hauser@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [4.3.106.70] at Tue, 8 Jul 2003 17:49:17 -0500 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:49:19 -0000 Not the case -- at least on SunOS 3.x & 4.x (the CSRG based versions). On those machines, /bin/cc looked in /usr/local/{include,lib} first -- just like gcc did. Solaris (aka SunOS 5+) is a SVR5 system which had an optional compiler. I don't recall what happened when the vendor compiler was installed -- I always used gcc. On Tuesday 08 July 2003 12:42 pm, you wrote: > 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.