Commit b7e38d4
committed
fix(ci): simplify musl-g++ wrapper to only disable FORTIFY_SOURCE
The musl-gcc.specs approach strips all system include paths via
-nostdinc, which removes C++ standard library headers and breaks
std::atomic detection in z3's cmake build.
Simpler approach: the only glibc-specific symbols z3 was pulling in
were __printf_chk and similar __*_chk functions generated by
_FORTIFY_SOURCE hardening. Disabling _FORTIFY_SOURCE makes g++ emit
standard printf/memcpy/etc. calls that musl provides, while keeping
all C++ headers intact.1 parent f91cdb7 commit b7e38d4
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
0 commit comments