Commit 5f410b7
fix(build): remove explicit -lasan/-lubsan from ASAN linker args
When clang++ is the compiler, -fsanitize=address links
libclang_rt.asan-x86_64.so while the explicit -lasan links GCC's
libasan.so.X from the gcc fallback path. Both end up in the binary's
NEEDED entries, causing "incompatible ASan runtimes" at startup.
-fsanitize=address/-fsanitize=undefined handle runtime linking
correctly for both GCC and clang without the explicit flags.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent dc82752 commit 5f410b7
1 file changed
Lines changed: 12 additions & 12 deletions
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments