From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15203 invoked by alias); 19 Dec 2007 20:39:46 -0000 Received: (qmail 15179 invoked by uid 22791); 19 Dec 2007 20:39:43 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.224) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Dec 2007 20:39:25 +0000 Received: by wr-out-0506.google.com with SMTP id 60so2384304wri.8 for ; Wed, 19 Dec 2007 12:39:22 -0800 (PST) Received: by 10.142.201.3 with SMTP id y3mr1870639wff.1.1198096761742; Wed, 19 Dec 2007 12:39:21 -0800 (PST) Received: by 10.142.126.8 with HTTP; Wed, 19 Dec 2007 12:39:21 -0800 (PST) Message-ID: Date: Wed, 19 Dec 2007 20:39:00 -0000 From: NightStrike To: gcc-help Subject: More questions on sysroots MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00351.txt.bz2 I thought I was doing the right thing for a while, but apparently there are still issues. If I want to build a complete toolchain as a canadian cross, tar it up, and give it to someone else, I have been doing the following for configuring binutils/gcc: ../gcc-svn/gcc/configure --prefix=/tmp/rt/root --with-sysroot=/tmp/rt/root --target=$TARGET Will this combinations of options, after tarring up /tmp/rt/root, allow that tar to be distributed anywhere, untarred into any directory, and run as normal with nothing but a simple change to PATH? I thought it would. I thought I could do this: cd /tmp/rt tar cjf tarfile root --owner 0 --group 0 Then on any system: cd /home/user/opt tar xf tarfile export PATH=/home/user/opt/root/bin:$PATH And finally, use that gcc seemlessly. Will that work?