From owner-freebsd-current Wed Mar 29 09:53:49 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA23180 for current-outgoing; Wed, 29 Mar 1995 09:53:49 -0800 Received: from trout.sri.MT.net (trout.sri.MT.net [204.182.243.12]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA23170 for ; Wed, 29 Mar 1995 09:53:44 -0800 Received: (from nate@localhost) by trout.sri.MT.net (8.6.9/8.6.9) id KAA15485 for current@FreeBSD.org; Wed, 29 Mar 1995 10:57:52 -0700 Date: Wed, 29 Mar 1995 10:57:52 -0700 From: Nate Williams Message-Id: <199503291757.KAA15485@trout.sri.MT.net> X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: current@FreeBSD.org Subject: Kernel compile 'feature' of new SNAP Sender: current-owner@FreeBSD.org Precedence: bulk In the quest to make the kernel compile out of the source tree w/out using the system includes, we have made it more difficult (and confusing) for people who want to build custom kernels. A user send me email late last night complaining he couldn't build a kernel. Apparently it died during a make depend cause it couldn't find . Everything worked fine on my box, so I wan't sure why it didn't work until I looked at the Makefile. The line INCLUDES= -nostdinc makes it impossible for folks to do what they have always done, which is to download the kerndist and build a custom kernel. We either need to document this (a good idea), or change the default behavior to use the system includes. I prefer the latter since most folks who will build kernels are users and not developers, but I'm not the one making the decision. Would using an ENVIRONMENT variable be acceptable? Current: # Not ready for -I- yet. #include "foo.h" where foo.h is in the srcdir fails. INCLUDES= -nostdinc -I. -I$S -I$S/sys -I$S/../include Proposed # Not ready for -I- yet. #include "foo.h" where foo.h is in the srcdir fails. .if defined(SRC_INCLUDES) INCLUDES= -nostdinc -I$S/../include .endif INCLUDES+= -I. -I$S -I$S/sys What we did was remove the above parameters from the INCLDUES lines and everything worked fine. Nate