Skip to content

Instantly share code, notes, and snippets.

@am0d
Forked from amatus/rust_for_rpi.md
Last active January 3, 2016 00:39
Show Gist options
  • Save am0d/8384436 to your computer and use it in GitHub Desktop.
Save am0d/8384436 to your computer and use it in GitHub Desktop.

Howto build a rust compiler for the Raspberry Pi on Fedora 18

#sudo yum install git build-essential
#test `uname -m` = x86_64 && sudo apt-get install ia32-libs

git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH

git clone http://github.com/mozilla/rust.git
cd rust
./configure --target=arm-unknown-linux-gnueabihf
time make -j
#sudo make install
rustc --target arm-unknown-linux-gnueabihf --linker arm-linux-gnueabihf-g++ <source files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment