]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: reinstate minimal_debugging_information bcond
authorNathan Cutler <ncutler@suse.com>
Thu, 23 May 2019 15:34:08 +0000 (17:34 +0200)
committerStefen Allen <sallen@suse.com>
Thu, 9 Dec 2021 19:29:44 +0000 (12:29 -0700)
This bcond was in our downstream builds up until SES5, but somehow
got dropped in SES6.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index 9546ee0ccbf4f7838a0c152ba723f6c1c1f430d2..bff97c70414e586a2b6094c6f0fcd514978e2674 100644 (file)
@@ -24,6 +24,7 @@
 %bcond_with zbd
 %bcond_with cmake_verbose_logging
 %bcond_without ceph_test_package
+%bcond_with minimal_debugging_information
 %ifarch s390
 %bcond_with tcmalloc
 %else
@@ -1220,6 +1221,9 @@ done
 # the following setting fixed an OOM condition we once encountered in the OBS
 RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
 %endif
+%if %{with minimal_debugging_information}
+RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g')"
+%endif
 
 export CPPFLAGS="$java_inc"
 export CFLAGS="$RPM_OPT_FLAGS"