From: Zack Cerza Date: Fri, 25 Oct 2024 17:56:10 +0000 (-0600) Subject: ceph.spec.in: Add an option to disable dwz X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=25fd00bdbe4dc008d08cf27f6505eee4de545974;p=ceph.git ceph.spec.in: Add an option to disable dwz We disabled dwz in 2017, then re-enabled it in 2021. In my tests I observe dwz adding about 50% to build times in exchange for 33% space-saving. Signed-off-by: Zack Cerza --- diff --git a/ceph.spec.in b/ceph.spec.in index 14c1420af40f0..32517c6492b1a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -137,6 +137,11 @@ %endif %bcond_without cephadm_bundling %bcond_without cephadm_pip_deps +%bcond_without dwz +%if %{!with dwz} +# disable dwz for %50% speedup at the cost of ~33% space +%global _find_debuginfo_dwz_opts %{nil} +%endif %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d} %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}