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