Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 28 Feb 2001 20:38:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 28 Feb 2001 20:37:54 -0500 Received: from zeus.kernel.org ([209.10.41.242]:51676 "EHLO zeus.kernel.org") by vger.kernel.org with ESMTP id ; Wed, 28 Feb 2001 20:28:26 -0500 Date: Thu, 1 Mar 2001 01:05:21 +0100 From: Christoph Hellwig To: Keith Owens Cc: Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: [PATCH] reiserfs patch for linux-2.4.2 Message-ID: <20010301010521.A7301@caldera.de> Mail-Followup-To: Keith Owens , Christoph Hellwig , linux-kernel@vger.kernel.org In-Reply-To: <20010228202733.A18073@caldera.de> <20472.983404919@kao2.melbourne.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20472.983404919@kao2.melbourne.sgi.com>; from kaos@ocs.com.au on Thu, Mar 01, 2001 at 11:01:59AM +1100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 01, 2001 at 11:01:59AM +1100, Keith Owens wrote: > On Wed, 28 Feb 2001 20:27:33 +0100, > Christoph Hellwig wrote: > >Urgg. limits.h is a userlevel header... > > > >The attached patch will make similar atempts fail (but not this one as > >there is also a limits.h in gcc's include dir). > > > >--- linux-2.4.0/Makefile Mon Dec 25 19:21:14 2000 > >-CPPFLAGS := -D__KERNEL__ -I$(HPATH) > >+GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne 's/install: \(.*\)/\1include/gp') > >+CPPFLAGS := -D__KERNEL__ -nostdinc -I$(HPATH) -I$(GCCINCDIR) > > cc: trimmed to l-k. > > CPPFLAGS apply to the kernel compiler which can be a cross compiler but > you are extracting data from the host gcc. What exactly are you trying > to do here? Prevent inclusion of the usual (/usr/include) headers. > Are you trying to prevent the use of user space includes > or are you trying to pick up the cross compiler includes? Ok, gcc should be replaced by $(CC). Christoph -- Of course it doesn't work. We've performed a software upgrade. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/