diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index c40d0e828..e1a49dca1 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 } ) "