From owner-freebsd-hackers Sun Aug 11 12: 8:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 825DE37B400 for ; Sun, 11 Aug 2002 12:08:45 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0176343E6E for ; Sun, 11 Aug 2002 12:08:45 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g7BJ8EeR005333; Sun, 11 Aug 2002 14:08:14 -0500 (CDT) (envelope-from dan) Date: Sun, 11 Aug 2002 14:08:14 -0500 From: Dan Nelson To: Danny Braniss Cc: "M. Warner Losh" , freebsd-hackers@FreeBSD.ORG Subject: Re: /usr/local & cc Message-ID: <20020811190814.GG7599@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Aug 11), Danny Braniss said: > > In message: > > Danny Braniss writes: > > : is it me going senile, or some setup screwup on my part, but i see > > : that cpp does not have /usr/local/include in its path nor > > : /usr/local/lib in gcc/ld. i checked solaris/bsdi/linux and they all > > : search /usr/local/[include,lib] > > > > Are you sure about solaris and bsdi? This is a linux-ism. Last time > > this came up, that was the conclusion on the thread. > > > > Warner > > well, as far as i can check they are using /usr/local, > im including some output: > > BSDI BSD/OS 4.0.1: > Reading specs from /usr/local/lib/gcc-lib/i386-pc-bsdi4.0/2.95/specs > gcc version 2.95 19990728 (release) > #include <...> search starts here: > /usr/local/include > /usr/local/lib/gcc-lib/i386-pc-bsdi4.0/2.95/../../../../i386-pc-bsdi4.0/include > > ------------------------------------------------------------------------------- > SunOS sol4 5.8 Generic sun4u sparc SUNW,UltraAX-MP: > Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs > gcc version 2.95.2 19991024 (release) > #include <...> search starts here: > /usr/local/include > /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/include These two you compiled yourself, so you can't use them them in your examples. If you were to try with the native Solaris cc, it would not include /usr/local. Same for the bundled cc on Tru64. It's probably a bug that BSD/OS didn't remove /usr/include when they imported gcc into the base system. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message