From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8932 invoked by alias); 6 May 2012 20:24:38 -0000 Received: (qmail 8880 invoked by uid 22791); 6 May 2012 20:24:34 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 May 2012 20:24:20 +0000 Received: by wgbdr1 with SMTP id dr1so3464624wgb.12 for ; Sun, 06 May 2012 13:24:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=+KBExs1u5XflsB/p1Z8DLgyq8EVcDEZaj2qRJ4XQYh8=; b=P9vffW4cU7NfyscPRGI+/zo1oiRxTqkiMu8SK0tDG0l/BCDWRnbQGso1aberbVWsth tWZATh1XQ17LpZBoaXlXWby1fBSkvRoU/Q0K9V6D1XbwXHSqbiaqiKqk6nMYzQJiGxGc Tn7EVGhyxMspYS3UnTRRd9jj5nP0tMD8X2k6XaAN6375s2vlbdAmpDNfoah7MG9skt42 /V+qPdgkkAmw19uaJ2DPTmmecVPUnH9DgpUl+txXpfnPUpUhs5pQ+T0Xthv4pvMhNK20 uxDiyEm+wnuz/gk8z98eUnaI5ZZ9woWZBz/0fAhw6IvzBw82VMFKN8ryAeVwcegrg4uk 5qzg== Received: by 10.180.98.8 with SMTP id ee8mr29594982wib.14.1336335859295; Sun, 06 May 2012 13:24:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.89.1 with HTTP; Sun, 6 May 2012 13:23:59 -0700 (PDT) In-Reply-To: <20120506183641.5d26bcb4@skate> References: <20120506183641.5d26bcb4@skate> From: Michael Hope Date: Sun, 06 May 2012 20:24:00 -0000 Message-ID: Subject: Re: GCC support libraries and sysroot To: Thomas Petazzoni Cc: crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQloAlnDhIdsXAiPq/Nb+U11LO8mqS9paFFHM/ZDMS0b5/rqc/wA7ReqqGTtbMaxpDjOQ0kv X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00007.txt.bz2 On 7 May 2012 04:36, Thomas Petazzoni wrote: > Hello Michael, > > Le Fri, 23 Mar 2012 14:22:55 +1300, > Michael Hope a =E9crit : > >> Hi there. =A0Why does crosstool-NG create a symlink from >> $tuple/$sysroot/lib to $tuple/lib? =A0It causes GCC to install support >> libraries like libgcc_s.so into the sysroot instead of the default >> location which makes it tricky to replace the sysroot later. > > On the other hand, this was making things simple and easy for tools > like Buildroot to leverage the pre-built Linaro toolchains. The Linaro, > Sourcery CodeBench, Crosstool-NG and Buildroot toolchains all behaved > the same by installing all the libraries into the sysroot, so it was > easy to support all of them: we just copy the complete sysroot into a > "staging" directory, into which we add more libraries/headers as we > build stuff for the target. > > Since Linaro 2012.03 (and therefore 2012.04), this simple idea doesn't > work anymore as Linaro toolchains have important stuff installed > outside of the sysroot, which makes it a lot more complicated for > Buildroot to handle (and I guess possibly other similar tools). Hi Thomas. CodeSourcery and crosstool-NG supply a compiler, runtime, and sysroot. We supply a compiler and runtime that work with a few sysroots, and include a basic sysroot so the compiler works out of the box. It's important to me that an end user can easily swap out the sysroot for a bigger or compatible (Fedora? Debian?) one Could you tell me more about your use case? Perhaps we can tweak the default sysroot. -- Michael -- For unsubscribe information see http://sourceware.org/lists.html#faq