Commit 359a171
committed
🔧 Fix: Build Static MUSL Binaries for Universal Linux Support
**Problem:**
- GitHub Actions built binaries on Ubuntu 24.04 with GLIBC 2.38
- Server runs Ubuntu 22.04 with GLIBC 2.35
- Binary incompatibility: 'GLIBC_2.38 not found'
**Solution:**
- Switch to MUSL static linking
- x86_64-unknown-linux-musl (works on ALL Linux distros)
- aarch64-unknown-linux-musl (works on ALL ARM64 Linux distros)
**Benefits:**
✅ One binary works on Ubuntu 18.04, 20.04, 22.04, 24.04
✅ Works on Debian, CentOS, Alpine, Fedora, Arch
✅ No GLIBC version dependencies
✅ Fully static - includes all dependencies
✅ Slightly larger binary but 100% compatible
**Technical:**
- Added musl-tools for static linking
- Configured cross-compilation for ARM64 MUSL
- Binary size: ~15-20MB (vs 10-12MB dynamic)1 parent d7b4ef7 commit 359a171
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | | - | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | | - | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
0 commit comments