Cleanly support debug packages
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Feb 2012 18:12:40 +0000 (10:12 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Feb 2012 22:08:17 +0000 (14:08 -0800)
Allow a source rpm to be rebuilt with debugging enabled.  This
avoids the need to have to manually modify the spec file.  By
default debugging is still largely disabled.  To enable specific
debugging features use the following options with rpmbuild.

  '--with debug'               - Enables ASSERTs

  # For example:
  $ rpmbuild --rebuild --with debug zfs-modules-0.6.0-rc6.src.rpm

Additionally, ZFS_CONFIG has been added to zfs_config.h for
packages which build against these headers.  This is critical
to ensure both zfs and the dependant package are using the same
prototype and structure definitions.

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

No differences found