diff --git a/patches/0021-debian-rules-fix-buildtype.patch b/patches/0021-debian-rules-fix-buildtype.patch new file mode 100644 index 000000000..8b6ef6b56 --- /dev/null +++ b/patches/0021-debian-rules-fix-buildtype.patch @@ -0,0 +1,22 @@ +From 1f4b106d49fc916994d97e273599f75caa904c3b Mon Sep 17 00:00:00 2001 +From: Mark Nelson +Date: Thu, 14 Dec 2023 05:19:46 +0000 +Subject: [PATCH] debian/rules: Fix build_type for massive performance gain + +Signed-off-by: Mark Nelson +--- + debian/rules | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/debian/rules b/debian/rules +index ed7f4a255ed4b..b28abb7d62788 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -29,6 +29,7 @@ extraopts += -DWITH_PYTHON3=3 + extraopts += -DWITH_CEPHFS_JAVA=ON + extraopts += -DWITH_CEPHFS_SHELL=ON + extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default ++extraopts += -DCMAKE_BUILD_TYPE=RelWithDebInfo + extraopts += -DWITH_GRAFANA=ON + ifeq ($(DEB_HOST_ARCH), amd64) + extraopts += -DWITH_RBD_RWL=ON diff --git a/patches/series b/patches/series index 67a52ae7c..d9a3ff8f4 100644 --- a/patches/series +++ b/patches/series @@ -13,3 +13,4 @@ 0016-d-rules-fix-no-restart-on-upgrade.patch 0017-python3.10-pep-620.patch 0020-fix-4759-run-ceph-crash-daemon-with-www-data-group-f.patch +0021-debian-rules-fix-buildtype.patch \ No newline at end of file