This repository was archived by the owner on Feb 3, 2019. It is now read-only.
File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ arm-linux-gnueabihf-gcc --sysroot=$HOME/pi-tools/arm-bcm2708/arm-bcm2708hardfp-l
135
135
```
136
136
137
137
This is basically an alias for ` arm-linux-gnueabihf-gcc ` , but with the
138
- ` --sysroot ` set to where the libraries are kept. The `"$@" part is there to
138
+ ` --sysroot ` set to where the libraries are kept. The ` "$@" ` part is there to
139
139
pass all the incoming argument forwards to ` arm-linux-gnueabihf-gcc ` . Alright,
140
140
make the file executable:
141
141
149
149
chmod +x ~/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/gcc-sysroot
150
150
```
151
151
152
- and you should be done! Or, kind of done. There is one thing left.
152
+ If your crate requires building C++ code, then you'll need to create a ` g++-sysroot ` just
153
+ like ` gcc-sysroot ` , substituting ` arm-linux-gnueabihf-g++ ` for ` arm-linux-gnueabihf-gcc `
154
+ inside.
155
+
156
+ And you should be done! Or, kind of done. There is one thing left.
153
157
154
158
##Running Cargo
155
159
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ if [ "$1" != "doc" ]
17
17
then
18
18
# Set up our tools for anyting using these variables
19
19
export CC=" $tools /arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/gcc-sysroot"
20
+ export CXX=" $tools /arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/g++-sysroot"
20
21
export AR=" $tools /arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-ar"
21
22
22
23
# Set target triple
28
29
cargo $1 $flags
29
30
else
30
31
rustc -vV
31
- fi
32
+ fi
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ if [ "$1" != "doc" ]
17
17
then
18
18
# Set up our tools for anyting using these variables
19
19
export CC=" $tools /arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/gcc-sysroot"
20
+ export CXX=" $tools /arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/g++-sysroot"
20
21
export AR=" $tools /arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-ar"
21
22
22
23
# Set target triple
28
29
cargo $1 $flags
29
30
else
30
31
rustc -vV
31
- fi
32
+ fi
You can’t perform that action at this time.
0 commit comments