linuxPackages.zfs: fix m4 script when not using GCC

This commit is contained in:
Bernardo Meurer 2021-08-30 17:25:19 -07:00
parent 6f28a718e5
commit 5280cdee8d
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -47,6 +47,11 @@ let
postPatch = optionalString buildKernel ''
patchShebangs scripts
# https://github.com/openzfs/zfs/issues/10107
substituteInPlace ./config/kernel.m4 \
--replace "make modules" "make CC=$CC modules"
# The arrays must remain the same length, so we repeat a flag that is
# already part of the command and therefore has no effect.
substituteInPlace ./module/os/linux/zfs/zfs_ctldir.c \