Commit 72122da
fix(gcc-wrapper): keep real binary in bin/ so cc1 lookup resolves
The previous shape moved the real gcc binary to libexec/gcc-wrap/,
which broke gcc's relative lookup for cc1 / cc1plus / collect2 (gcc
expects them at lib/gcc/<triplet>/<version>/ relative to its OWN
location). Result: `cannot execute 'cc1': No such file or directory`
during fixincludes at make-install time.
Keep the real binary at bin/.${tool}-real (hidden by leading dot
to avoid cluttering bin/) and have bin/<tool> point at the wrapper.
cc1 lookup then resolves the same way it always did.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4977d5c commit 72122da
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| |||
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
248 | | - | |
| 252 | + | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
| |||
0 commit comments