3
0
Fork 0
forked from mirrors/nixpkgs

zfs-kernel: fix strip in cross-compilation

This commit is contained in:
Julien Moutinho 2021-10-29 04:29:58 +02:00 committed by Jonathan Ringer
parent 5774ef75e0
commit 736dcd8955

View file

@ -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 ''