aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorUmer Saleem <[email protected]>2022-05-25 21:22:11 +0500
committerBrian Behlendorf <[email protected]>2022-05-27 09:19:37 -0700
commit0a688b234540a5d54aa47c9a482042f9bf9aea10 (patch)
treebf7af998edcda4214d6174b399dc4dd16966a8a2 /config
parentfde66e583d9b9fc2c5ee53a1995157482ace35d3 (diff)
rpm: Keep debug symbols if configured with '--enable-debuginfo'
Do not strip debug information from packages if '--enable-debuginfo' is configured. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Umer Saleem <[email protected]> Closes #13500
Diffstat (limited to 'config')
-rw-r--r--config/zfs-build.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index 126f78476..c60eb0135 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -323,6 +323,10 @@ AC_DEFUN([ZFS_AC_RPM], [
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(DEBUG_KMEM_TRACKING_ZFS) 1"'
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(ASAN_ZFS) 1"'
+ AS_IF([test "x$enable_debuginfo" = xyes], [
+ RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "__strip /bin/true"'
+ ])
+
RPM_DEFINE_UTIL=' --define "_initconfdir $(initconfdir)"'
dnl # Make the next three RPM_DEFINE_UTIL additions conditional, since