diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index c40d0e828d..e1a49dca14 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -58,6 +58,10 @@ PRE_BUILD="configure then echo --enable-debug fi + if [[ \${ZFS_DKMS_ENABLE_DEBUGINFO,,} == @(y|yes) ]] + then + echo --enable-debuginfo + fi } ) "