This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building a cross-compiler for a Raspberry Pi
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 13 Mar 2016 10:58:11 +0000
- Subject: Re: Building a cross-compiler for a Raspberry Pi
- Authentication-results: sourceware.org; auth=none
- References: <20160313060143 dot 4e5a89b4c428e989bc0351c9 at laposte dot net>
On 13/03/16 05:01, YuGiOhJCJ Mailing-List wrote:
> 1) How we determine the correct machine name?
It looks correct.
> 2) How to build my cross-compiler without glibc?
Copy the root filesystem from a Raspberry Pi onto your machine, then
configure gcc with --sysroot=<dirname>, the RPi root filesystem. GCC
will then pull all target headers and libraries from the sysroot.
Andrew.