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 ) id 1Khh3M-0008TL-6a for garchives@archives.gentoo.org; Mon, 22 Sep 2008 08:45:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FD24E0427; Mon, 22 Sep 2008 08:45:55 +0000 (UTC) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.245]) by pigeon.gentoo.org (Postfix) with ESMTP id 3DF53E0427 for ; Mon, 22 Sep 2008 08:45:55 +0000 (UTC) Received: by rv-out-0708.google.com with SMTP id b17so1376474rvf.46 for ; Mon, 22 Sep 2008 01:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding:sender; bh=+5DDO9uVj3xJoqyKcRDXh7jT3PZAFzWxM126AE997kI=; b=li92klx0YaSpeqd4kfhPX0CuWB8uy8mtZyolESAZw7yuM+GLOCs3Y72JTzHtQyrEkb 2iosEghsnh5pKUiWetakUX/i8eGhhaMu0GsUQTAxTb8xGxE+nZx7wa0i0ABq6f7g32CV ymPZ5hfuSe/b6U4pi26oEkurztdha+dgC9gco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding:sender; b=WJImZl8rxHo8XPo1HjyKcJo5thrpTFMm8O8n8MR3eA8i2gAmuX46A5u7FV4TNgugZI vzi60dynVjwLy07+my7m1VbvmHj5M3XUCNoBoyxTqzu5olmsfI00MUCtd8hZdh/NeCwW co1HEMS7jxcMCRmLRQvVAb6bTc9rf9O0iG070= Received: by 10.140.147.5 with SMTP id u5mr1802595rvd.166.1222073154123; Mon, 22 Sep 2008 01:45:54 -0700 (PDT) Received: from ?192.168.2.6? ( [196.205.217.178]) by mx.google.com with ESMTPS id c20sm5633022rvf.3.2008.09.22.01.45.51 (version=SSLv3 cipher=RC4-MD5); Mon, 22 Sep 2008 01:45:52 -0700 (PDT) Subject: Re: [gentoo-embedded] Auto Repair Cross Includes? From: Ahmed Ammar To: gentoo-embedded@lists.gentoo.org In-Reply-To: <1222017153.9939.82.camel@media> References: <1222017153.9939.82.camel@media> Content-Type: text/plain Date: Mon, 22 Sep 2008 10:45:48 +0200 Message-Id: <1222073148.27532.17.camel@localhost.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: Ahmed Ammar X-Archives-Salt: 0b0e0153-2d33-422f-9852-460993570183 X-Archives-Hash: 285f2d76f0938a70dbf9b8d4bf9a3b9b On Sun, 2008-09-21 at 10:12 -0700, Ned Ludd wrote: > I've been toying with an idea after seeing a patch which would abort() > when it detected host includes for cross compiles. I did not like the > idea of aborting as it prevented me from building pkgs that had the same > headers in $ROOT as /. I did like the fact there was a little QA I could > slip in there. After thinking about it a while. I said fsck the QA and > just fixed the problem. Here is what I came up with for gcc-4.2.4.. > > While in my testing I'm finding this works beautifully. However I'd like > some input from others on what they think of such an idea. > Good/Bad/Other? > > Basic goal detect ^/usr/include and rewrite it to $ROOT/usr/include if > using a cross compiler and ROOT is set. I really like this idea, seems clean and simple to do it from gcc. I haven't tested this out yet though but I can't see why it wouldn't work. -- Ahmed Ammar (b33fc0d3 [at] gentoo.org)