From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10489 invoked by alias); 26 Jan 2011 19:24:17 -0000 Received: (qmail 10461 invoked by uid 22791); 26 Jan 2011 19:24:14 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail16.primus.ca (HELO mail-02.primus.ca) (216.254.141.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Jan 2011 19:24:09 +0000 Received: from ottawa-hs-64-26-169-119.s-ip.magma.ca ([64.26.169.119] helo=[192.168.0.16]) by mail-02.primus.ca with esmtpa (Exim 4.72) (envelope-from ) id 1PiAyN-00012Y-1O; Wed, 26 Jan 2011 14:24:07 -0500 Subject: Re: Building Relocatable gcc From: Kyle Girard To: Ian Lance Taylor Cc: gcc-help@gcc.gnu.org In-Reply-To: References: <1296055661.3050.2178.camel@Tak> Content-Type: text/plain; charset="UTF-8" Date: Wed, 26 Jan 2011 19:24:00 -0000 Message-ID: <1296069846.3050.2187.camel@Tak> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: 2011-01/txt/msg00383.txt.bz2 > What do you mean by relocatable? > > If you use just the --prefix=DIR option, and run "make" and "make > install", then you can move the directory DIR wherever you like and > everything should continue to work. By relocatable I mean I guess self contained.. I can use --prefix and install the compiler to DIR, yes, but after I rename DIR to DIR2 doesn't gcc continue to look for it's headers in DIR? If I wanted to zip up the gcc in DIR and put it on another machine that doesn't have gcc installed on it and doesn't the directory DIR wont it still be looking for headers in DIR? I'd like to make version of gcc that I can zip up and drop on to a machine in a directory of my choice and instantly have a version of gcc that I can compile things with. Sort of like the way mingw is done but for linux. Cheers, Kyle