]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian/rules: add with_system_libs option 40291/head
authorKefu Chai <kchai@redhat.com>
Sun, 21 Mar 2021 15:04:49 +0000 (23:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 24 Mar 2021 10:52:42 +0000 (18:52 +0800)
so the maintainer can choose to use the packages shipped by distro.

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/rules

index 7037c197d76ac0ab786ebf9af557f7c199e51227..f808099fb5c7b6d156ec93f5d0921e8c1ab60048 100755 (executable)
@@ -35,6 +35,10 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
   NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
   extraopts += -DBOOST_J=$(NUMJOBS)
 endif
+ifneq (,$(filter with_system_libs,$(DEB_BUILD_OPTIONS)))
+  extraopts += -DWITH_SYSTEM_BOOST=ON
+  extraopts += -DWITH_SYSTEM_PMDK=ON
+endif
 
 %:
        dh $@ --buildsystem=cmake --with javahelper,python3,systemd --parallel