Received: from [68.230.241.42] (helo=fed1rmmtao104.cox.net) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1LptR3-0001pt-Dm for openembedded-devel@openembedded.org; Sat, 04 Apr 2009 02:08:36 +0200 Received: from fed1rmimpo03.cox.net ([70.169.32.75]) by fed1rmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20090404000558.ITQS16134.fed1rmmtao104.cox.net@fed1rmimpo03.cox.net> for ; Fri, 3 Apr 2009 20:05:58 -0400 Received: from localhost ([68.230.63.214]) by fed1rmimpo03.cox.net with bizsmtp id bC5w1b0084dMFYL04C5wyK; Fri, 03 Apr 2009 20:05:56 -0400 X-Authority-Analysis: v=1.0 c=1 a=Ji7YCslGg5QA:10 a=Y9EANamfXBtUqQfQ694A:9 a=ZRLf44MKXJlClGRB5NQA:7 a=rbCQm_TAOstiMsEdyuGcCHE4hwAA:4 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Fri, 3 Apr 2009 17:05:56 -0700 From: Tom Rini To: openembedded-devel@openembedded.org Message-ID: <20090404000556.GM30840@smtp.west.cox.net> References: <20090403221352.GH30840@smtp.west.cox.net> <20090403231514.GE12552@denix.org> MIME-Version: 1.0 In-Reply-To: <20090403231514.GE12552@denix.org> Organization: Embedded Alley Solutions, Inc User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 68.230.241.42 X-SA-Exim-Mail-From: trini@kernel.crashing.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on serenity X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: Fix relocation of our SDK toolchains X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2009 00:08:37 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 03, 2009 at 07:15:14PM -0400, Denys Dmytriyenko wrote: > On Fri, Apr 03, 2009 at 03:13:52PM -0700, Tom Rini wrote: > > Hey all. For some time, myself and others have wished that the > > toolchain we install with our SDK target (meta-toolchain*) could be > > relocatible. I've finally spent some time digging into this and I've > > come up with the following series of patches. We had two problems. The > > first is that things like 'as', 'ld', 'cpp', etc that the toolchain > > invokes were absolute links rather than relative links within the SDK. > > The second issue is that we were using --with-gxx-include-dir in > > configuring gcc when really we don't want that, we want to put the C++ > > includes where GCC is going to look for them already, not in an absolute > > path. > > > > I've tested this series of patches with gcc-4.1.2 / 4.2.4 and 4.3.3 > > cross-sdk targets on Linux and 4.2.4 on Windows. For Linux I've > > compiled qtopia-core-4.3.5 as a stand-in for a large complex app. > > > > At this point the only thing left is to make the environment-setup setup > > based on where it's invoked from. > > Thanks! Will you be looking into libtool(-ize)/.la files and pkg-config .pc > files? pkg-config is done already, via env variables that we setup in environment-setup[1]. I'm not 100% sure on what might or might not need doing to the .la files, however. [1]: When I tried a while ago, it would get a tiny bit confused if you have both host stuff (opkg-sdk) and target stuff (libpng-sdk) and give you both. So it could be possible to have some host stuff try and be used if you don't have a target one as the case where you had both host and target, the target was used. Or I could be mis-remembering. -- Tom Rini