zfs-kernel: fix strip in cross-compilation

This commit is contained in:
Julien Moutinho
2021-10-28 20:11:18 -07:00
committed by Jonathan Ringer
parent 5774ef75e0
commit 736dcd8955
+1 -1
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 ''