X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=zfs-modules.spec.in;h=220b1c11ed43b0e653dd774bc3cddce0c72d696d;hb=1c5de20ae2511124613926e4f780572634818218;hp=f1db8c3a630dc1125b18ee758b821b1608ef2acf;hpb=4b787d75c869a7f633607ecb17f3a7c482a553d2;p=zfs.git diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in index f1db8c3..220b1c1 100644 --- a/zfs-modules.spec.in +++ b/zfs-modules.spec.in @@ -33,6 +33,17 @@ %endif %endif +# Set using 'rpmbuild ... --with debug-dmu-tx ...', defaults to disabled. +%if %{defined _with_debug_dmu_tx} + %define kdebug_dmu_tx --enable-debug-dmu-tx +%else + %if %{defined _without_debug_dmu_tx} + %define kdebug_dmu_tx --disable-debug-dmu-tx + %else + %define kdebug_dmu_tx --disable-debug-dmu-tx + %endif +%endif + # SLES: %if %{defined suse_version} %if %{undefined kver} @@ -264,7 +275,7 @@ which use %{name}. %build %configure --with-linux=%{kdir} --with-linux-obj=%{kobj} \ --with-spl=%{spldir} --with-spl-obj=%{splobj} \ - --with-config=kernel %{kdebug} + --with-config=kernel %{kdebug} %{kdebug_dmu_tx} make %install