git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #136251 from lovesegfault/zfs-fix-configure

linuxPackages.zfs: fix m4 script when not using GCC

commit03f44bd2251a6c7d28aa7d376a3df1ff127b0139 authorBernardo Meurer <bernardo@meurer.org> dateWed 1 Sep 2021, 18:15 (5 years ago) parent6aef13b5280cde
1 file changed+5
pkgs/os-specific/linux/zfs/default.nix+5
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 \