Commit 2baa031
committed
fix: GCC needs --sysroot for include-fixed, supplement with -isystem
GCC's include-fixed directory contains stdlib.h wrappers that use
#include_next to find the sysroot's stdlib.h. This mechanism only
works with --sysroot, not standalone -isystem paths.
Fix: for GCC, keep --sysroot from probe_sysroot() and supplement
with -isystem for linux kernel headers from payload when the probed
sysroot is missing them. For Clang, continue using --no-default-config
+ explicit -isystem (Clang doesn't have include-fixed).1 parent e9d088e commit 2baa031
2 files changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
138 | 150 | | |
139 | | - | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
144 | 156 | | |
145 | | - | |
146 | 157 | | |
147 | 158 | | |
148 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
132 | 142 | | |
133 | | - | |
| 143 | + | |
134 | 144 | | |
135 | 145 | | |
136 | 146 | | |
137 | | - | |
138 | | - | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
| |||
0 commit comments