summaryrefslogtreecommitdiff
path: root/libbcachefs/btree_trans_commit.c
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-10-12 18:13:19 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-12 17:20:56 -0400
commit3666da87f249b23b2c1f506e0d4157fd56c543e2 (patch)
tree234da705f94961167b913e902c039b8d79855862 /libbcachefs/btree_trans_commit.c
parent6153c37e38e999634404c86d03e2ae1f111fb869 (diff)
Pass -C default-linker-libraries to rustc
By default, rustc passes -nodefaultlibs to the linker. In some cases, this can cause compiler builtins (e.g. __cpu_model, used by __builtin_cpu_supports) not to be linked in: = note: /nix/store/s2cjhni3s6shh0n35ay1hpj8d85k44qk-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: ./libbcachefs.a(tools-util.o): in function `resolve_crc32c': /build/source/c_src/tools-util.c:457:(.text+0x1023): undefined reference to `__cpu_model' collect2: error: ld returned 1 exit status I saw this with static musl GCC builds, and others have reported it with Clang. Link: https://github.com/koverstreet/bcachefs-tools/issues/300 Signed-off-by: Alyssa Ross <hi@alyssa.is> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions