mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
linuxManualConfig: don't leak rust-lib-src paths into the final binary
This commit is contained in:
parent
1386871d14
commit
9dd1da7475
@ -164,6 +164,10 @@ let
|
|||||||
|
|
||||||
RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;
|
RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;
|
||||||
|
|
||||||
|
# avoid leaking Rust source file names into the final binary, which adds
|
||||||
|
# a false dependency on rust-lib-src on targets with uncompressed kernels
|
||||||
|
KRUSTFLAGS = lib.optionalString withRust "--remap-path-prefix ${rustPlatform.rustLibSrc}=/";
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
map (p: p.patch) kernelPatches
|
map (p: p.patch) kernelPatches
|
||||||
# Required for deterministic builds along with some postPatch magic.
|
# Required for deterministic builds along with some postPatch magic.
|
||||||
|
Loading…
Reference in New Issue
Block a user