Skip to content

Commit eec83c8

Browse files
committed
Publish a post: portable-gcc-toolchain.md
1 parent 453881f commit eec83c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

content/post/portable-gcc-toolchain.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Build a Portable GCC Toolchain"
33
date: 2024-05-09T16:49:12+08:00
4-
draft: true
4+
draft: false
55
summary: A guide to build a portable GCC toolchain
66
tags: ["GCC", "x86_64", "aarch64"]
77
categories: ["English"]
@@ -31,6 +31,8 @@ and [use it](/post/portable-gcc-toolchain/#use-the-all-in-one-script).
3131
# Use ubuntu:22.04 image
3232
docker run -it ubuntu:22.04 bash
3333

34+
cd /root
35+
3436
apt update && apt upgrade --yes
3537

3638
# Install dependencies
@@ -71,7 +73,9 @@ Extract all sources.
7173

7274
```shell
7375
find 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

122126
mkdir -p "${TARGET_PREFIX}/lib"
123127
ln -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

0 commit comments

Comments
 (0)