scx.rustscheds: restore RUSTFLAGS

Per 059ce35c31/meson.build (L347-L349)
but linking libbpf is not required, built in rust one should work fine.

See 8ec509cc13 (r2302122465) and https://github.com/sched-ext/scx/pull/2592
This commit is contained in:
John Titor
2025-08-28 12:09:01 +05:30
committed by Masum Reza
parent 4adf5a21d5
commit 079b7a006c

View File

@@ -30,6 +30,12 @@ rustPlatform.buildRustPackage {
env = { env = {
BPF_CLANG = lib.getExe llvmPackages.clang; BPF_CLANG = lib.getExe llvmPackages.clang;
RUSTFLAGS = lib.concatStringsSep " " [
"-C relocation-model=pic"
"-C link-args=-lelf"
"-C link-args=-lz"
"-C link-args=-lzstd"
];
}; };
hardeningDisable = [ hardeningDisable = [