forked from mirrors/nixpkgs
zfs-kernel: fix strip in cross-compilation
This commit is contained in:
parent
5774ef75e0
commit
736dcd8955
|
@ -144,7 +144,7 @@ let
|
|||
# Since zfs compress kernel modules on installation, our strip hooks skip stripping them.
|
||||
# Hence we strip modules prior to compression.
|
||||
postBuild = optionalString buildKernel ''
|
||||
find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug
|
||||
find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES ${stdenv.cc.targetPrefix}strip --strip-debug
|
||||
'';
|
||||
|
||||
postInstall = optionalString buildKernel ''
|
||||
|
|
Loading…
Reference in a new issue