From: Kefu Chai Date: Thu, 4 Aug 2022 06:12:34 +0000 (+0800) Subject: debian: use dpkg/default.mk to init popular make variables X-Git-Tag: v18.0.0~343^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f00a702327379c51893c575828755419f704bbe;p=ceph.git debian: use dpkg/default.mk to init popular make variables Signed-off-by: Kefu Chai --- diff --git a/debian/rules b/debian/rules index 796804fa9b70..6303fbb2e75d 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,8 @@ export DH_VERBOSE=1 export DESTDIR=$(CURDIR)/debian/tmp -export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +include /usr/share/dpkg/default.mk + extraopts += -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 ifneq (,$(findstring WITH_STATIC_LIBSTDCXX,$(CEPH_EXTRA_CMAKE_ARGS))) # dh_auto_build sets LDFLAGS with `dpkg-buildflags --get LDFLAGS` on ubuntu,