From owner-freebsd-current Tue Apr 4 16:36:54 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA26416 for current-outgoing; Tue, 4 Apr 1995 16:36:54 -0700 Received: from mpp.com (dialup-4-42.gw.umn.edu [128.101.96.42]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id QAA26406 for ; Tue, 4 Apr 1995 16:36:49 -0700 Received: (from mpp@localhost) by mpp.com (8.6.11/8.6.9) id SAA01357; Tue, 4 Apr 1995 18:31:52 -0500 From: Mike Pritchard Message-Id: <199504042331.SAA01357@mpp.com> Subject: Re: cvs commit: src/sys/i386/conf Makefile.i386 To: nate@trout.sri.MT.net (Nate Williams) Date: Tue, 4 Apr 1995 18:31:52 -0500 (CDT) Cc: rkw@dataplex.net, current@FreeBSD.org In-Reply-To: <199504041758.LAA06600@trout.sri.MT.net> from "Nate Williams" at Apr 4, 95 11:58:51 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1372 Sender: current-owner@FreeBSD.org Precedence: bulk > > Further, a user who does not have the entire source distribution could > > "create" the includes by either copying or linking in /usr/include. > > *BLECH* BSD systems have *never* (and should *never*) require that you > have the complete source tree installed just to build a kernel. Making > them go through alot of trouble to build a kernel is a waste of their > time. Many, many more people build kernels w/out src trees than people > who build kernels w/src trees. We are trying to make the system > *easier* to use for the avg. user w/out penalizing the developer. > > Show me a solution that does that and it'll get into the tree. If it > doesn't provide both, then it's not a complete solution. I wanted to > provide a ENVIRONMENT variable which was set to provide /usr/src/include > protection, but it was show down. > > Nate Ok, how about conditionally adding /usr/include to the -I list. E.g. in the kernel makefile do: .if !exist /usr/src/include CFLAGS +=-I/usr/include .endif (or whatever the correct makefile syntax is) If I have /usr/src/include installed then my kernel build uses the include files from my source tree. If I simply downloaded just the kernel sources, then it will pick up the include files from /usr/include. -- Mike Pritchard pritc003@maroon.tc.umn.edu "Go that way. Really fast. If something gets in your way, turn"