diff options
Diffstat (limited to '.cargo/config.toml')
| -rw-r--r-- | .cargo/config.toml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..17369d2 --- /dev/null +++ b/.cargo/config.toml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Rust's std references glibc 2.39's pidfd_spawnp/pidfd_getpid as *weak* symbols. | ||
| 2 | # On an older glibc the dynamic linker resolves them to NULL (std falls back to | ||
| 3 | # posix_spawn), but it also prints a warning on every start: | ||
| 4 | # | ||
| 5 | # /lib/i386-linux-gnu/libc.so.6: weak version `GLIBC_2.39' not found | ||
| 6 | # | ||
| 7 | # Defining them locally as absolute 0 removes the version need while keeping the | ||
| 8 | # same runtime behaviour: the check sees NULL and takes the fallback path. | ||
| 9 | [target.i686-unknown-linux-gnu] | ||
| 10 | rustflags = [ | ||
| 11 | "-C", "link-arg=-Wl,--defsym,pidfd_spawnp=0", | ||
| 12 | "-C", "link-arg=-Wl,--defsym,pidfd_getpid=0", | ||
| 13 | ] | ||
