mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
scx.rustscheds: restore RUSTFLAGS
Per059ce35c31/meson.build (L347-L349)but linking libbpf is not required, built in rust one should work fine. See8ec509cc13 (r2302122465)and https://github.com/sched-ext/scx/pull/2592
This commit is contained in:
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user