From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-2771-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1L1Deq-0006FO-4B
	for garchives@archives.gentoo.org; Sat, 15 Nov 2008 05:25:20 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id CF81FE02EB;
	Sat, 15 Nov 2008 05:25:19 +0000 (UTC)
Received: from s15216962.onlinehome-server.info (s15216962.onlinehome-server.info [217.160.22.205])
	by pigeon.gentoo.org (Postfix) with ESMTP id 6D9B1E02EB
	for <gentoo-embedded@lists.gentoo.org>; Sat, 15 Nov 2008 05:25:19 +0000 (UTC)
Received: (from uucp@localhost)
	by s15216962.onlinehome-server.info (8.13.3/8.13.3) with UUCP id mAF5PGxr006124
	for gentoo-embedded@lists.gentoo.org; Sat, 15 Nov 2008 06:25:16 +0100
Received: (from weigelt@localhost)
	by nibiru.metux.de (8.12.10/8.12.10) id mAF5M9MQ023033
	for gentoo-embedded@lists.gentoo.org; Sat, 15 Nov 2008 06:22:09 +0100
Date: Sat, 15 Nov 2008 06:22:09 +0100
From: Enrico Weigelt <weigelt@metux.de>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Auto Repair Cross Includes?
Message-ID: <20081115052209.GA21400@nibiru.local>
References: <1222017153.9939.82.camel@media>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1222017153.9939.82.camel@media>
User-Agent: Mutt/1.4.1i
X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, 
X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, 
X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, 
X-Killer: 23, endloesung, Weltuntergang, 
X-Doof: wer das liest ist doof
X-Archives-Salt: de76a262-0dcd-47f0-9f79-dbe1b8462a43
X-Archives-Hash: c09c7301efa77b32fe290c9aef833b61

* Ned Ludd <solar@gentoo.org> schrieb:

Hi,

> I've been toying with an idea after seeing a patch which would abort()
> when it detected host includes for cross compiles. 

Funny idea, sorts out the dozens of crap makefiles easily (eg. written 
by those mindless jerks who refuse to learn not to use absolute pathes
or explicitly add standard includes).

> I did not like the idea of aborting as it prevented me from building 
> pkgs that had the same headers in $ROOT as /. 

sucessfully shot yourself ? ;-o

> Basic goal detect ^/usr/include and rewrite it to $ROOT/usr/include if
> using a cross compiler and ROOT is set.

#1: why not using the more standard and well-known $SYSROOT variable ? 

#2: why not just using the already existing '=' prefix ?

#3: WTH do you explicitly add an standard include path like 
    /usr/include ?! It's automatically done by gcc nothings an
    individual application has to cope with.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------