File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11---
22title : " Build a Portable GCC Toolchain"
33date : 2024-05-09T16:49:12+08:00
4- draft : true
4+ draft : false
55summary : A guide to build a portable GCC toolchain
66tags : ["GCC", "x86_64", "aarch64"]
77categories : ["English"]
@@ -31,6 +31,8 @@ and [use it](/post/portable-gcc-toolchain/#use-the-all-in-one-script).
3131# Use ubuntu:22.04 image
3232docker run -it ubuntu:22.04 bash
3333
34+ cd /root
35+
3436apt update && apt upgrade --yes
3537
3638# Install dependencies
@@ -71,7 +73,9 @@ Extract all sources.
7173
7274` ` ` shell
7375find packages/ -mindepth 1 -exec tar -Jxf {} \;
76+ ` ` `
7477
78+ ` ` ` shell
7579# Layout
7680.
7781| -- binutils-2.42
@@ -121,7 +125,9 @@ ln -snf .. "${CROSS_PREFIX}/${TARGET}"
121125
122126mkdir -p " ${TARGET_PREFIX} /lib"
123127ln -snf " lib" " ${TARGET_PREFIX} /lib64"
128+ ```
124129
130+ ``` shell
125131# Layout
126132/opt/
127133` -- toolchain
@@ -705,5 +711,5 @@ export PATH="/root/compiler/bin:${PATH}"
705711
706712# References
707713
708- [How to Build a GCC Cross-Compiler](https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/)
714+ 1. [How to Build a GCC Cross-Compiler](https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/)
709715
You can’t perform that action at this time.
0 commit comments