From: Nathan Cutler Date: Thu, 23 May 2019 15:34:08 +0000 (+0200) Subject: ceph.spec.in: reinstate minimal_debugging_information bcond X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f6b31fb641ac85c3b5c7ac7d13228f05a100100;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 9546ee0ccbf..bff97c70414 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"