From 6f6b31fb641ac85c3b5c7ac7d13228f05a100100 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Thu, 23 May 2019 17:34:08 +0200 Subject: [PATCH] ceph.spec.in: reinstate minimal_debugging_information bcond This bcond was in our downstream builds up until SES5, but somehow got dropped in SES6. Signed-off-by: Nathan Cutler --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 9546ee0ccbf4f..bff97c70414e5 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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" -- 2.39.5