vault backup: 2026-11-07 16:33:44
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user