aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorUmer Saleem <[email protected]>2022-05-25 21:22:11 +0500
committerGitHub <[email protected]>2022-05-25 09:22:11 -0700
commitb37093a188d94279e5e2faaf09e6ff754873b0a2 (patch)
treef89793e760fbc1419aada767f96c1d816f99cf8e /config
parent61ef68727b0b3c53e27d6e503947f6c5efd1318c (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 59bca5579..582c479f5 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -333,6 +333,10 @@ AC_DEFUN([ZFS_AC_RPM], [
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(ASAN_ZFS) 1"'
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(UBSAN_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