vault backup: 2026-11-07 16:33:44

This commit is contained in:
cheney
2026-11-07 16:33:55 +08:00
commit 7015312702
1208 changed files with 132432 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
## Linux 下基于 Docker 编译 Aarch64 平台
#### 在宿主机上注册 QEMU 解释器
```
apt install qemu-user-static binfmt-support
```
#### 进入容器编译
```
docker run -it --rm --platform linux/arm64 -v `pwd`:/workdir sunnydaysoftware/make /bin/bash
```
### 使用 Linux 容器和 MinGW-w64 交叉编译
## 编译 openssl
# 设置交叉编译环境变量
```
export CC=x86_64-w64-mingw32-gcc
export RANLIB=x86_64-w64-mingw32-ranlib
export AR=x86_64-w64-mingw32-ar
export RC=x86_64-w64-mingw32-windres
```
```
./Configure mingw64 \
--prefix=/usr/local/openssl-win64 \
no-shared \
no-zlib \
no-asm
./Configure mingw64 \
--prefix=/usr/local/openssl-win64 \
no-shared \
no-zlib \
no-asm \
no-makedepend
```