Set RPM_DEFINE_COMMON options
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 23 Apr 2013 23:40:47 +0000 (16:40 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 24 Apr 2013 23:18:55 +0000 (16:18 -0700)
When the kmod packaging was introduced the ability to pass the
--enable-debug and --enable-dmu-tx options from configure all
the way through to `make rpm|deb` was accidenally lost.  Update
ZFS_AC_RPM to explicitlu set RPM_DEFINE_COMMON with these
rpmbuild defines.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1402

config/zfs-build.m4

index cccd87f..005185b 100644 (file)
@@ -138,7 +138,7 @@ AC_DEFUN([ZFS_AC_RPM], [
                AC_MSG_RESULT([$HAVE_RPMBUILD])
        ])
 
-       RPM_DEFINE_COMMON=
+       RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
        RPM_DEFINE_UTIL=
        RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
        RPM_DEFINE_DKMS=