linuxPackages.zfs: fix m4 script when not using GCC
commit5280cdee8d6c3ec3155150c703ccd50d038b2cdb
authorBernardo Meurer <bernardo@meurer.org>
dateMon 30 Aug 2021, 17:25 (5 years ago)
parent6f28a71
pkgs/os-specific/linux/zfs/default.nix+5
@@ -47,6 +47,11 @@ let
4747
4848 postPatch = optionalString buildKernel ''
4949 patchShebangs scripts
50+
51+ # https://github.com/openzfs/zfs/issues/10107
52+ substituteInPlace ./config/kernel.m4 \
53+ --replace "make modules" "make CC=$CC modules"
54+
5055 # The arrays must remain the same length, so we repeat a flag that is
5156 # already part of the command and therefore has no effect.
5257 substituteInPlace ./module/os/linux/zfs/zfs_ctldir.c \